Forum Moderators: phranque
I have two servers, www.mydomain.com (for php) and www2.mydomain.com (ASP pages).
Currently the default page when accessing www.mydomain.com is index.php. I would like any requests for www.mydomain.com/index.php to be shown a page on www2.mydomain.com (with www.mydomain.com still showing in their address bar). Here's what I've tried...
RewriteCond %{HTTP_HOST} ^www.mydomain\.com/index.php
RewriteRule ^(.*)$ www2.mydomain\.com/folder/home.asp [L]
This has no effect, the index.php page is shown and when I delete it I receive a 404 error. Can anybody help?
Thanks
RewriteCond %{HTTP_HOST} www\.mydomain\.com [NC]
RewriteRule ^index.php [www2.mydomain\.com...] [L]
But still no luck.