语言未宣布理想状态 [英] Language not declared Ideally

查看:153
本文介绍了语言未宣布理想状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在网站上针对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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆