The System: Apache v2.2.2 on Solaris 9 with mod_rewrite available
This system hosts multiple virtual servers, and these are defined in ./conf/extra/httpd-vhosts.
All these virtual hosts are using different Domain Names from the "main" Apache server.
For one specific virtual hosts, I want to re-direct all requests for *any* page under that virtual host to a specific URL in the "main" Apache server.
Let's say the "main" Apache server considers itself "www.mydomain.tld
", and the specific virtual host I want to mod_rewrite is "www.deaddomain.tld
I want to redirect *any* page request that starts out "www.deaddomain.tld
" to "www.mydomain.tld/readthis.html
1) Do the mod_rewrite configuration statements go in ./conf/httpd.conf or in the Virtual Host section of ./conf/extras/httpd-vhosts
.conf (I think the latter, but I want to be sure)?
2) What's the proper syntax for the Rewrite* statements?