HTTP Status code for language redirect

后端 未结 5 1721
青春惊慌失措
青春惊慌失措 2020-12-25 13:43

I wonder which HTTP Status code I should have to send in language redirects.

I have the following php code to redirect via HTTP headers to most important language in

5条回答
  •  我在风中等你
    2020-12-25 14:16

    HTTP 303, because it have the most suitable formulation - See Other (302-Moved Temporarily and 301 - Moved Permanently). Actually HTTP 303 response in this situation to ensure that the web user's browser can then safely refresh the server response without causing the initial HTTP POST request to be resubmitted.

提交回复
热议问题