Language not declared Ideally

半腔热情 提交于 2019-12-12 18:19:12

问题


I've been running some tests on my website in regards to the Google webmaster guidelines.

To my surprise it states that I'm not declaring my language ideally. Upon checking my HTML, I have the following within it:

<html lang="en">
<head>

Am I stating the language incorrectly? As I thought this was correct...


回答1:


I managed to find a fix to this problem, as I mentioned when I was trying to declare the language via HTML it just would not work.

So I used .htaccess to fix the problem by sending custom headers:

Header set Content-Language "en-GB"


来源:https://stackoverflow.com/questions/37273839/language-not-declared-ideally

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!