Change 302 redirect to 301 redirect

jackinloadup - June 30, 2009 - 18:57
Project:Secure Pages
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

I checked the header status of the redirect with the following tool
http://www.seoconsultants.com/tools/headers.asp
and noticed its response was 302 redirect.

I think using a 301 redirect would be a better choice. Thought?
http://www.bigoakinc.com/blog/when-to-use-a-301-vs-302-redirect/
http://www.mattcutts.com/blog/seo-advice-discussing-302-redirects/

I have included a patch to make the necessary change.

I dont know why anyone would want this redirect to be a 302 but if there is a use-case we could include a admin setting to switch between 301 and 302 redirects. Thoughts?

AttachmentSize
securepages_301_redirect.patch697 bytes
 
 

Drupal is a registered trademark of Dries Buytaert.