Forum Moderators: phranque
1 - Where in the httpd.conf should the be put? inside a NameVirtualHost ****.****.****.xxx or <Virtual Host xxx.xxx.xxx.xxx>, since there are several virt ip addresses
2 - what is the correct format? This is what I tried inside a NameVirtual Host, but the webserver choked:
the visitor types: [abc.com...] or anything.com/xyz
they should go to: [example.com:123...]
RewriteEngine On
RewriteBase /xyz
RewriteRule (.*) [example.com:123...] [R=301,L]
Thanks!
Because of this, you need to exclude www.example.com:123 so that it is not repeatedly rewritten, putting your server into a loop. Use RewriteCond and the {HTTP_HOST} and {SERVER_PORT} variables to prevent www.example.com:123 from being rewritten.
Jim
REDIRECT /xyz [example.com:123...]
within every <VirtualSite> that required it. Then after we reinstalled the server, I figured a global redirect would be less maintenance....but where to put it and what syntax?
Thanks,
/\/\att