码迷,mamicode.com
首页 > 其他好文 > 详细

头信息语言版本设置

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

标签:seo 服务器

找了很多资料,我也不确认我的方法是不是正确,但是抓包工具和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

头信息语言版本设置

标签:seo 服务器

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!