dongpanbo4727 2014-01-26 23:49
浏览 19
已采纳

多语言站点URL和语言路径

I am developing a cms in php. The language section works like this: www.site.com/it/ Default language www.site.com/en/ English language

I you go to www.site.com you are automatically redirected to the default language www.site.com/it/ Doing some testing with some tool, I get 302 temporary redirect.. My question is this error: 302 temporary redirect, is this a problem?

  • 写回答

1条回答 默认 最新

  • doufa5001 2014-01-27 02:14
    关注

    A 302 HTTP response status code is appropriate for your use (language redirection). Moreover, the 300-class status codes do not indicate an error unlike 400-class status codes, which indicate a client error, and the 500-class status codes, which indicate a server error.

    A 303 status code may be even better, but for interoperability reasons, 302 is well-understood by all Web browsers. See W3C's "HTTP/1.1: Status Code Definitions" for more information.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 请问有人会紧聚焦相关的matlab知识嘛?
  • ¥50 yalmip+Gurobi
  • ¥20 win10修改放大文本以及缩放与布局后蓝屏无法正常进入桌面
  • ¥15 itunes恢复数据最后一步发生错误
  • ¥15 关于#windows#的问题:2024年5月15日的win11更新后资源管理器没有地址栏了顶部的地址栏和文件搜索都消失了
  • ¥100 H5网页如何调用微信扫一扫功能?
  • ¥15 讲解电路图,付费求解
  • ¥15 有偿请教计算电磁学的问题涉及到空间中时域UTD和FDTD算法结合的
  • ¥15 three.js添加后处理以后模型锯齿化严重
  • ¥15 vite打包后,页面出现h.createElement is not a function,但本地运行正常