
: 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
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).
More posts by @Karen161
3 Comments
Sorted by latest first Latest Oldest Best
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.
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.