html - 使用 href ="/"而不是 href ="index.html"作为起始页?

标签 html seo

在下面的 Google 语言指示中,我使用了 href="/"而不是 href="index.html"。然而,这似乎在网站管理员工具中给我警告。有人知道这里发生了什么吗?

网站站长工具告诉我:

  • 有包含错误的 Hreflang 标签。
  • es-ES 网页和替代网页的网址不包含返回标记。

最佳答案

在你的 hreflang 中你可以输入你的网站 url

 <link rel="alternate" href="http://yourwebsite.com/" hreflang="en" />

<link rel="alternate" href="http://yourwebsite.com/index.html" hreflang="en" />

关于html - 使用 href ="/"而不是 href ="index.html"作为起始页?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41874309/

相关文章:

javascript - Safari 12.1 中的变换原点动画问题

angularjs - 我可以将 100% SEO 应用于 angularjs 还是在服务器端生成页面更有效?

多语言网站的 URL 结构

html - 使用纯 CSS 向父类添加类

ajax - 我应该向 googlebot 显示我的页面的无 AJAX 版本吗?

seo - 元标记未显示在搜索引擎中

apache - 重写 URL SEO

android - 使用 4.1 HTML 5 直播到 android

html - 在不影响标题文本的情况下无法移动按钮

html - 如何仅使用 css 在响应能力方面复制该网站?