有谁知道,如果谷歌将惩罚的网站,如果主页(有或没有结尾的斜线)返回一个200 OK标头响应?
我已经测试吨使用在线重定向检查(CNN,纽约时报,福克斯新闻,维基百科等)的网站,他们都返回200“OK”有或没有结尾的斜线。
我知道所有的内页需要使用一个或另一个,但它出现在网页上是个例外。 你怎么都认为?
PS,我在IIS7使用URLRewrite强制WWW,小写,并删除尾随斜线。 看来网页不受结尾的斜线规则的唯一页面。
谢谢!
编辑例如,使用这个在线工具: http://www.internetofficer.com/seo-tool/redirect-check/下列网址是“直接联系”。 无论是301重定向... http://www.wikipedia.org http://www.wikipedia.org/
许多其他实例产生相同的结果。
编辑2这里是我的URLRewrite代码(web.config中)
<rules>
<rule name="CanonicalHostNameRule1" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www\.domain\.com$" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="http://www.kurtzandblum.com/{R:1}" />
</rule>
<rule name="LowerCaseRule1" stopProcessing="true">
<match url="[A-Z]" ignoreCase="false" />
<action type="Redirect" redirectType="Permanent" url="{ToLower:{URL}}" />
</rule>
<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>
</rules>