Forum Moderators: phranque

Message Too Old, No Replies

rewrite all virtual host requests to be handled by another virtual hos

         

jamie

3:04 pm on Sep 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi,

we run our own dedicated server with several virtual hosts. to keep code compact i wish all requests for one virtual host to be handled by code from another virtual host, but even a simple redirect to test doesn't appear to be working yet.

this works:

RewriteRule ^(.*)$ test.html [L]

but this doesn't:

RewriteRule ^(.*)$ /www/sites/other_vhost.com/htdocs/test.html [L]

Many thanks in advance for help.

jamie

4:03 pm on Sep 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



not to worry, i tried several searches and found gold

[webmasterworld.com...]

symbolic links!

thanks for the original answer jd :)