For HTTP (which is on port 80) I wrote this in .htaccess:
- Code: Select all
RewriteEngine on
RewriteCond %{HTTP_HOST} ^sub.domain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.sub.domain.com$
RewriteRule ^(.*)$ http://dest.address.com [R=301,L]
RedirectMatch permanent ^/sub/$ http://dest.address.com
But how to redirect others protocols, running on other ports to different external servers?
SIP (port 5060) to serwer1
SMTP (port 25) to serwer2
Telnet (port 23) to serwer3