HTTP Status code for language redirect

后端 未结 5 1710
青春惊慌失措
青春惊慌失措 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:19

    Google uses 302 Found for redirection to localised page.

    I think it is safe if Google uses it...

    However, it's always good to check what selected response should do and what it is intended for and does it affect caching:

    http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

提交回复
热议问题