Google 认为我的主页是尾部斜杠
我非常想知道为什么 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您的意思是 Google 将您的网站显示为而
不是,
那么这与网络服务器的工作方式有关。服务器通常配置为使用默认文档(很可能是index.htm,具体取决于您的设置)应答对第一个 URL 的请求。
此外,如果您的网站使用 Javascript 将访问者重定向到不同的页面,您应该注意,Google 的搜索机器人通常无法解释 Javascript,并且不会像使用 Internet Explorer 或 Firefox 等图形浏览器的访问者那样被重定向。
If you mean Google is showing your site as
instead of
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.
正如 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.