语言未宣布理想状态 [英] Language not declared Ideally
问题描述
我在网站上针对Google网站管理员指南进行了一些测试。
令我惊讶的是,我没有理想地宣布自己的语言。在检查我的HTML之后,我有以下内容:
< html lang =en>
< head>
我说错了吗?正如我以为这是正确的... ...
我设法找到这个问题的解决方案,正如我当时所提到的试图通过HTML声明语言它不会工作。
因此我使用 .htaccess
来解决问题通过发送自定义标题:
$ $ p $ 头文件集Content-Languageen-GB
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...
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"
这篇关于语言未宣布理想状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!