Mobile app version of vmapp.org
Login or Join
Karen161

: When redirecting from http to https in a shop site, which status code should I use? On a shop website, when "Pay now" is clicked we perform a header redirection to the same URL, just an

@Karen161

Posted in: #301Redirect #302Redirect #303Redirect #Https #Redirects

On a shop website, when "Pay now" is clicked we perform a header redirection to the same URL, just an SSL secured https version.

In such a common scenario, should we use a permanent (301), a temporary (302) or any other status code? Somehow, neither permanent nor temporary feels right (though I guess the latter will be more appropriate).

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Karen161

3 Comments

Sorted by latest first Latest Oldest Best

 

@Angela700

For more information on response codes, see: www.w3.org/Protocols/rfc2616/rfc2616-sec10.html (or urivalet.com/reason-phrases/ for a summary).

To answer your question, and to allay the issues with the 303 response (that some clients don't understand it), you would be safer to stick with a 302.

10% popularity Vote Up Vote Down


 

@Rambettina238

If you are always redirecting to the SSL site, then a 301 would fit … but you might as well just change the URL you link to instead of redirecting.

10% popularity Vote Up Vote Down


 

@Kevin317

A 303 See Other may be the most appropriate in this scenario.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme