Apache Server configuration support - How to construct these rewrite rules?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > September 2007 > How to construct these rewrite rules?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to construct these rewrite rules?
laredotornado@zipmail.com

2007-09-24, 7:25 pm

Hi,

I'm running Apache 2 on Linux. I was wondering if it is possible to
use mod_rewrite with an .htaccess file to achieve the following. I
have two domains, -- www.mydomain1.com and www.mydomain2.com, both
pointing to the same IP. What I want is that if someone types in
www.mydomain2.com, the URL is rewritten as www.mydomain2.com/index2.php.
However, if someone types in www.mydomain1.com/whatever, the URL is
rewritten as www.mydomain2.com/whatever.

Your help is greatly appreciated, - Dave

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com