Forum Moderators: phranque
I would like to have all access requests for the old domain's pages to point to the homepage of the new domain. Is the following two lines of code the best way to achieve the desired results:
Redirect 301 http://www.olddomain.co.uk/* http://www.newdomain.co.uk/Redirect 301 http://olddomain.co.uk/* http://www.newdomain.co.uk/
[edited by: jdMorgan at 2:59 pm (utc) on Dec. 28, 2007]
[edit reason] De-linked example URLs. [/edit]
point to the homepage of the new domain
... any request beginning with URL-Path will return a redirect request to the client at the location of the target URL. Additional path information beyond the matched URL-Path will be appended to the target URL.
Resource: [httpd.apache.org...]
If the site structure has not changed and it is merely a different domain, you may want to consider RedirectMatch [httpd.apache.org] and bring them to the same content page on the new domain by using the captured matching patterns. If you truly want them to go to the homepage, just don't use the pattern in the target URL.
Jim
What would you recommend as the best way for us to retain any traffic to the old site without offending SEs.
I am also aware that it is not a good idea to have too many domain names pointing to the same server IP address. However, I don't know any better way to retain the residual value from our old domain.
> What would you recommend as the best way for us to retain any traffic to the old site without offending SEs.
I stand by the recommendations in the cited thread -- Although you may also wish to provide a per-domain "replacement home page" for each old domain, explaining what happened to it, and providing appropriate links for visitors who encounter those pages.
For future reference, see this article [w3.org] by one of the inventors of the World-Wide-Web, Sir Tim Berners-Lee.
Jim
Jim