Apache Server configuration support - Who among you is bold enough to tackle this URL rewrite question?

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > July 2007 > Who among you is bold enough to tackle this URL rewrite question?





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 Who among you is bold enough to tackle this URL rewrite question?
laredotornado@zipmail.com

2007-07-27, 7:22 pm

Hi,

I'm using Apache 2 running on Linux. I have a question about
rewriting URLs using an .htaccess file. I have several domains
(mydomain1.com, mydomain2.com, mydomain3.com) pointing to the same
IP. How would I construct a rewrite rule such that if someone visited
the URL

http://otherdomain.com/mypage.html

where "otherdomain.com" is anything other than " mydomain1.com", the
URL would be rewritten as

http://mydomain1.com/mypage.html

I only want the rule to be in effect for the page, "mypage.html". How
would I construct such a rewrite rule?

Thanks, - Dave

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com