- Impact
- 0
've got a series of domains parked on an account on a LAMP server with mod_rewrite available for duty. I'd like to achieve the following:
I'm looking for domain1.com to be the "master" - the idea is that the following redirects should be in place (with 301 statuses for maximum SEO benefit):
And so on...
Effectively, I'd like to implement some kind of wildcard in the mix so that subpages of /foo/ and /bar/ are also redirected to the same URLs on domain1.com
I've been hunting high and low for the relevant .htaccess documentation, but can't seem to find the solution I am looking for. I was therefore wondering if any of you might have some pointers - would be very much appreciated
I'm looking for domain1.com to be the "master" - the idea is that the following redirects should be in place (with 301 statuses for maximum SEO benefit):
Code:
domain2.com redirects to domain1.com
domain3.com redirects to domain1.com
domain2.com/foo/ redirects to domain1.com/foo/ domain3.com/foo/ redirects to domain1.com/foo/
domain2.com/foo/bar/ redirects to domain1.com/foo/bar/
domain3.com/foo/bar/ redirects to domain1.com/foo/bar/
And so on...
Effectively, I'd like to implement some kind of wildcard in the mix so that subpages of /foo/ and /bar/ are also redirected to the same URLs on domain1.com
I've been hunting high and low for the relevant .htaccess documentation, but can't seem to find the solution I am looking for. I was therefore wondering if any of you might have some pointers - would be very much appreciated






