Google 认为我的主页是尾部斜杠

发布于 2024-08-04 07:43:53 字数 310 浏览 3 评论 0原文

我非常想知道为什么 Google 网站管理员工具和分析将我的主页注册为尾部斜杠?!

没有抓取错误、401、搜索问题,其他方面没有任何问题。

我的主页是用尾部斜杠编写的,如果访问者不包含斜杠,我的网站将自动获取 / 并将其发送到 http ://about/

我想也许这就是为什么谷歌现在认为 / 是我的主页。

我有一个有人安装的 WordPress 博客,但它是我自己的域。互联网历史上的任何人曾经发生过这种情况吗?

I am desperate to know why Google webmaster tools AND analytics are registering my home page as a trailing slash?!

There are no crawl errors, 401s, search issues, nothing wrong otherwise.

My home page is written with a trailing slash and if a visitor does not include the slash, my site will automatically fetch the / and send them to http://about/

I think maybe this is why Google now thinks that / is my home page.

I have a wordpress blog that someone installed but it's my own domain. Has this ever happened to anyone in the history of the internet before?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

述情 2024-08-11 07:43:53

如果您的意思是 Google 将您的网站显示为而

http://example.com/

不是,

http://example.com/index.htm

那么这与网络服务器的工作方式有关。服务器通常配置为使用默认文档(很可能是index.htm,具体取决于您的设置)应答对第一个 URL 的请求。

此外,如果您的网站使用 Javascript 将访问者重定向到不同的页面,您应该注意,Google 的搜索机器人通常无法解释 Javascript,并且不会像使用 Internet Explorer 或 Firefox 等图形浏览器的访问者那样被重定向。

If you mean Google is showing your site as

http://example.com/

instead of

http://example.com/index.htm

then this is to do with the way webservers work. The server is typically configured to answer a request for the first URL with a default document (which may well be index.htm, depending on your setup).

Additionally, if your site is redirecting visitors to different page with Javascript, you should be aware that Google's search bots typically cannot interpret Javascript, and will not be redirected like a visitor with a graphical browser such as Internet Explorer or Firefox.

弥繁 2024-08-11 07:43:53

正如 Colin 提到的,这取决于您的网络服务器中的设置和 .htaccess 规则。 Wordpress 通常会重写 URL(为了干净的 URL),并且那里可能存在配置错误。

As Colin mentioned, this depends on the settings in your webserver and your .htaccess rules. Wordpress typically rewrites URLs (for clean URLs) and it could be misconfiguration there.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文