首页 > 其他 > 详细

头信息语言版本设置

时间:2014-05-15 18:57:16      阅读:416      评论:0      收藏:0      [点我收藏+]

找了很多资料,我也不确认我的方法是不是正确,但是抓包工具和gw返回的头信息是正确的。


This way the URL is always easy to understand for the user. Do not use English URLs for non-English pages, so for a Polish page use "kontakt" instead of "contact". After all, if an URL is to be comprehensible for a visitor, it needs to be in the language he or she has chosen to use.

If you want to inform search engines about the language of the current page, you have three options that you can use in tandem:

  1. Send the HTTP header Content-Language: xx.

  2. Use the HTML META section: <meta http-equiv="Content-Language" content="xx" />. Remember that this is obsolete in HTML5.

  3. Use the ‘lang" attribute in the HTML element. <html lang="xx">

location / {

add_header ‘Content-Language‘ en-US;

}

nginx setting


头信息语言版本设置,布布扣,bubuko.com

头信息语言版本设置

原文:http://daoxin.blog.51cto.com/8920427/1411847

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!