Forum Moderators: phranque
Currently, I can access www.domain1.com/bar.html and www.domain2.com/bar.html and all is fine
But if I try going to "www.domain2.com/foo/bar.html", the address bar is rewritten to say "domain1.com/foo/bar.html" I would like it to remain as "www.domain2.com/foo/bar.html"
Any way to do this? Currently my .htaccess is empty, and I would assume this is how it should work by default.
Once the configuration code executes, it is too late to 'fix it' with .htaccess.
BTW, it is not a good idea to have more than one URL resolve to the same content. The two URLs will 'compete' for ranking in the search engines, and neither will rank as well as it should. Also, each search engine will pick which URL it likes best, and drop the other -- and you won't be able to control which. So frankly, you'd be much better off redirecting all requests for domain1 to domain2, and linking to and promoting only domain1 (or vice-versa). Try searching WebmasterWorld for "duplicate content penalty" for more information.
Jim