Home › Forums › Other › Mirroring Multiple URLs, but different homepages? › Reply To: Mirroring Multiple URLs, but different homepages?
October 22, 2014 at 2:23 pm
#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.