Forum Moderators: coopster

Message Too Old, No Replies

Creating "mirror" sites.

         

erikcw

10:03 pm on Aug 23, 2004 (gmt 0)

10+ Year Member



Hi all!

I am working on a site where the owner wants to have 2 domains, with 2 different logos and names, but the same data.

I am thinking of using php to check the location field, and if the request is domain1, then display logo1 etc, if domain2, display logo2.

All of the files will be located on domain1.com, and domain2.com will just have index.php?id=page (using mod-rewrite to keep everything looking clean) Then the script will use an include like this:
include("http://www.domain1.com/$id?logo=2")

Is this the best way to do this? Any suggestions?

Thanks!
Erik

lazydog

10:54 pm on Aug 23, 2004 (gmt 0)

10+ Year Member



What if you set the "DocumentRoot" for both the domains to the same directory?
And then use HTTP_HOST to determine the which logo etc. to serve.

Just a thought.

Saurabh.