I have a webpage that when landed on, will detect a user’s physical location and then redirect them to the page most appropriate for the user.
What HTTP Status Code should be used for this redirect?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe that HTTP 303 is probably the most appropriate status code for a situation like this, though it may not be compatible with pre-HTTP 1.1 clients.
The HTTP 303 Status Code states (Note: I have bolded the parts that I feel are most important):
The response to the request can be found under a different URI and SHOULD be retrieved using a GET method on that resource. This method exists primarily to allow the output of a POST-activated script to redirect the user agent to a selected resource. The new URI is not a substitute reference for the originally requested resource. The 303 response MUST NOT be cached, but the response to the second (redirected) request might be cacheable.