View Revisions: Issue #548

Summary 0000548: redirect: change the default HTTP status code to 301
Revision 2019-11-03 11:21 by administrator
Additional Information Redirect action should generate HTTP status code 301 by default to let the user delete the old page after the new one is properly indexed by search engines.
302 redirect is only a temporary one according to RFC7231 https://tools.ietf.org/html/rfc7231#section-6.4.3 :

6.4.3. 302 Found

   The 302 (Found) status code indicates that the target resource
   resides temporarily under a different URI. Since the redirection
   might be altered on occasion, the client ought to continue to use the
   effective request URI for future requests.

So to clean our search engine site index of crappy old pages URLs and to let Redirect action call be shorter it's better to make it 301 by default and add temporary=1 to set HTTP status code to 302.
Revision 2019-11-03 10:51 by administrator
Additional Information