Dynadot โ€” .com Transfer

Parked Domain Wildcard 301 Redirects

Spaceship Spaceship
Watch
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):

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 :)
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
I think this should go in another section of website development. As this is not specifically related to parking what we discuss here.

Or may be some experts in parking may have some idea about this ?
 
0
•••
Thanks for give guideline
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Domain Recover
DomainEasy โ€” Zero Commission
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back