httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Avi Mozes" <amo...@hotmail.com>
Subject [users@httpd] mod_rewrite with dynamic mirrors
Date Sat, 31 Jan 2004 09:55:25 GMT
Hi all,
new to apache's mod_rewrite.  I have a situation and was wondering if Apache 
could do it.
I have two sites: site1.com and site2.com.
site1.com is complete and it's files are located in /home/site1/
site2.com wants to go off of site1.com's files.
With a dynamic mirror on site2 (RewriteRule    ^(.*)$  
http://www.site1.com/$1  [P]), I can make it look like site2.com is 
site1.com.
The only issue I have is, is there a way of making it so site1.com shows 
site2.com always in the URL bar.
So, for example, a user goes to www.site2.com, they get www.site1.com's 
content.
And if a user goes to www.site1.com, they get www.site1.com's content, but 
in the URL bar it shows www.site2.com at all times.

Any ideas?  And if there's a better way than a dynamic mirror to solve half 
the problem (as I already did), please let me know.  Thanks more all your 
help in advance!

Avi
amozes@hotmail.com

_________________________________________________________________
What are the 5 hot job markets for 2004? Click here to find out. 
http://msn.careerbuilder.com/Custom/MSN/CareerAdvice/WPI_WhereWillWeFindJobsIn2004.htm?siteid=CBMSN3006&sc_extcmp=JS_wi08_dec03_hotmail1


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message