网站管理员工具在基于 Kohana 的网站中显示 /a 为 404?
我注意到在使用各种 Kohana 网站时,网站管理员工具几乎总是将 /a
标记为 404'ing。我没有具体的代码可以向您展示,因为它几乎出现在所有代码中。
我只是想知道是否还有其他人遇到过或已经解决了这个问题。这是一个已知问题吗?
谢谢。
I have noticed when working with various Kohana sites that webmaster tools almost always flags up /a
as 404'ing. I have no specific code to show you because it occurs in pretty much all of them.
I just wondered if anyone else had or has fixed this problem. Is it a known issue?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请提供更多信息。
/a
是您网站中的有效位置吗?当然,如果/a
不存在,它会被标记。Please provide some more information.
Is
/a
a valid location in your website? Of course it's going to flag/a
if it doesn't exist.jQuery 是 Googlebot 获取的代码的根源。在 jQuery 文件本身中有这一行...
根据 Google(见下文),将 301 重定向添加到
htaccess
文件以永久解决此问题。以下是 Google 员工 JohnMu 在 我在 Google 网上论坛发起的帖子。
请参阅此答案以获取更多信息:
https://stackoverflow.com/a/6587142/594235
jQuery is the root source of the code being picked up by the Googlebot. Within the jQuery file itself is this line...
As per Google (see below), add a 301 redirect to the
htaccess
file to kill this problem for good.The following is a response from Google employee JohnMu on this issue in the thread I started at Google Groups.
See this SO answer for even more information:
https://stackoverflow.com/a/6587142/594235