Forum Moderators: phranque
I am just about to implement an .htaccess permanent redirect on the same domain, and I'd appreciate a sanity check before I break anything. I'm particularly concerned about losing our top positions in G.
I need to achieve two things:
1. The directory structure is too deep and being reduced a level
From: http://www.example.com/folder/product/
To: http://www.example.com/product/
For this I have the rule:
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^folder/(.*)$ http://www.example.com/$1 [R=301,L]
We are also renaming a product (and thus directory) because of copyright issues
From: http://www.example.com/folder/oldproduct/
To: http://www.example.com/newproduct/
For this I have the rule:
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule ^folder/oldproduct(.*)$ http://www.example.com/newproduct/$1 [R=301,L]
(I assume actually the rules would need to be the other way around to ensure the 'NewProduct' rule is hit first)
Whilst we don't have to remove all references to 'oldproduct' immediately we may as well start the process.
I am concerned about two things here:
1. What G would say if I didn't redirect immediately and it found almost identical content in /folder/oldproduct/ and /newproduct/
2. We have heavy inbound links and PR to the /folder/oldproduct/ of which some referrers we just won't be able to get updated, I just wondered if anyone has any thoughts?
Cheers,
asp
[edited by: pageoneresults at 1:59 pm (utc) on April 24, 2006]
[edit reason] Examplified URIs [/edit]
We don't deal with ranking details in this forum, but generally, simple is best; Install the 301 redirect and be done with it. Google will transfer PageRank to the new URLs over time. However, it is best to get as many of the incoming links as possible pointed to the new URLs, but to leave a few pointed at the old redirected URLs so that the search engines will 'see' the 301 redirects.
If you need more information on specific search engine behaviour, ask in the engine-specific forums.
Jim
SEO hint: Neatness counts. ;)
Best practice is to get as many of those links updated as possilble, leaving just a few pointing to the old URL to be sure that the 301 gets picked up by all search engines. Based on the worst I've ever seen, Inktomi, leaving a few old links in place for two years is not unreasonable.
Jim
After doing some more research, I found that fortunately Google was linking to the path "/folder/product/" rather than "/folder/product/file.html", so in the end I decided to use:
RewriteRule ^folder/product(/)?$ http://www.example.com/product/ [R=301,L]
The idea being that I can leave all the old URLs there if referrers link to a specific file, but the Google links to the / will return a 301.
Cheers,
asp