Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Other Mirroring Multiple URLs, but different homepages? Reply To: Mirroring Multiple URLs, but different homepages?

#186845
__
Participant

Alright. Apache sets a variable called “HTTP_HOST”, which is the Host (domain name) requested by the client. So, we can check this to see which domain name was used, and rewrite the URL if it is just the root URL.

RewriteCond %{HTTP_HOST} domain1example\.com$
RewriteRule ^$ /domain-1-home-page.html

untested. Repeat as needed for each domain. Depending on your site structure (i.e., specific names of the domains and pages), there might be a quicker rule.