我有一个 ASP.NET 网站,它使用 URLRewrite 2 删除 URL 中的尾部斜杠。
我们注意到 Mac 上的 Safari 不遵守此规则。它始终在 URL 中留下尾部斜杠。 SEO Moz 显示两个 URL,这似乎是潜在的重复内容问题。
这是 Web.Config 中的 URL 重写规则
<rule name="Remove trailing slash" stopProcessing="true">
<match url="(.*)/$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="{R:1}" />
</rule>
这是有问题的网站:http://www.kurtzandblum.com/ http://www.kurtzandblum.com/(斜杠将被删除,Safari 除外)
我正在尝试决定是否...
- 这是 Safari 中的无害错误吗?
- 我的重写脚本有缺陷。
- 我应该将其切换为“添加”尾部斜杠。
谷歌表示斜线或不斜线都可以http://googlewebmastercentral.blogspot.com/2010/04/to-slash-or-not-to-slash.html http://googlewebmastercentral.blogspot.com/2010/04/to-slash-or-not-to-slash.html
感谢您的任何见解。
这就是 Safari 处理 URL 的方式。对SEO没有影响,所以你不需要做任何事情。
您的网址在 Chrome 中看起来不错。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)