SEO - 重定向网页或根网址 - 尾部斜杠(SEO - Redirect Homepage or

2019-06-26 02:24发布

有谁知道,如果谷歌将惩罚的网站,如果主页(有或没有结尾的斜线)返回一个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>

Answer 1:

好了,这里是来自官方的答案谷歌博客

我引述......“请放心,你的根URL具体地说, http://example.com相当于http://example.com/即使你是查克·诺里斯不能被重定向。”

所以你有它。 根URL不仅安全有或没有结尾的斜线,但它甚至可能是不可能的301重定向一个到另一个。



Answer 2:

我会建议维持一个定式(使用一个或其他),以防止目录混乱。 应该有在搜索引擎优化方面没有任何区别。 使用301个重定向可能在这种情况下,如果你觉得你需要它的选项。



文章来源: SEO - Redirect Homepage or Root URL - Trailing Slash