How do you do a 303 redirect?
How do you do a 303 redirect?
2 Answers. In PHP you can perform a 303 redirect using header() : header(“HTTP/1.1 303 See Other”); header(“Location: http://$_SERVER[‘HTTP_HOST’]/new/location/here”); The problem you may face is retaining the form information after the redirect.
What is a 300 response code?
The HTTP 300 Multiple Choices redirect status response code indicates that the request has more than one possible responses. The user-agent or the user should choose one of them. As there is no standardized way of choosing one of the responses, this response code is very rarely used.
How long does a URL redirect take?
Domain forwarding may take up to 48 hours to update. If your website doesn’t show after 48 hours, check the URL and try again.
What is the HTTP response status code 303?
The HTTP response status code 303 See Other is a way to redirect web applications to a new URI, particularly after a HTTP POST has been performed, since RFC 2616 (HTTP 1.1).
What is the definition of a 303 redirect?
A 303 redirect is a response to an HTTP status code 303, which is also called a “See Other” status code. Experts describe the specific type of redirect as a response to a request for a Unified Resource Identifier (URI) that identifies a real-world object.
When to use the 303 See other code?
The 303 See Other code is typically provided in response to a POST, PUT, or DELETE HTTP method request, which indicates to the client that the server successfully received the data associated with the request, and the client should send a new GET request to the new URI it was provided by the server.
Which is an example of a 303 See response?
For example, if http://www.example.com/id/alice identifies a person, Alice, then it would be inappropriate for a server to respond to a GET request with 200 OK, as the server could not deliver Alice herself. Instead the server would issue a 303 See Other response which redirected to a separate URI providing a description of the person Alice.