ytrstu / vosao

Automatically exported from code.google.com/p/vosao
GNU Lesser General Public License v2.1
0 stars 0 forks source link

Use 301 redirect for SEO URLs #304

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
SiteFilter uses 302 redirects which aren't as SEO friendly as 301 redirects 
(301 Moved Permanently).

Can you change the response.sendRedirect for it to:

response.setStatus(301);
response.setHeader( "Location", "http://www.new-url.com/" );
response.setHeader( "Connection", "close" );

Thanks!

Original issue reported on code.google.com by roland.q...@gmail.com on 9 Aug 2010 at 12:42

GoogleCodeExporter commented 8 years ago
Actually 302 redirect isn't friendly at all.. you need to make it 301 or it 
defeats the purpose of the SEO URLs ;-)

As per the many articles on this if you do a google search.. here is an extract 
from what someone says about using 302 vs 301 redirects:

"From a search engine perspective, 301 redirects are the only acceptable way to 
redirect URLs.  In the case of moved pages, search engines will index only the 
new URL, but will transfer link popularity from the old URL to the new one so 
that search engine rankings are not affected. The same behavior occurs when 
additional domains are set to point to the main domain through a 301 redirect."

http://www.theinternetdigest.net/archive/301-redirects-seo.html

Original comment by roland.q...@gmail.com on 9 Aug 2010 at 12:52

GoogleCodeExporter commented 8 years ago
Fixed. r872

Original comment by kinyelo@gmail.com on 9 Aug 2010 at 6:04