小编Joe*_*ooz的帖子

SEO - 重定向主页或根URL - 尾随斜杠

有没有人知道如果主页(有或没有尾部斜线)返回200 ok标题响应,Google是否会惩罚某个网站?

我已经使用在线重定向检查器(CNN,纽约时报,福克斯新闻,维基百科等)测试了大量网站,他们都返回200"ok",有或没有尾随斜线.

我知道所有内页都需要使用其中一个,但看起来主页是一个例外.你们都觉得怎么样?

PS,我在IIS7中使用URLRewrite来强制使用www,小写和删除尾部斜杠.主页似乎是唯一不受尾部斜杠规则影响的页面.

谢谢!

编辑 例如,使用此在线工具:http://www.internetofficer.com/seo-tool/redirect-check/ 以下URL是"直接链接".也不是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>
Run Code Online (Sandbox Code Playgroud)

seo url-rewriting

4
推荐指数
1
解决办法
2915
查看次数

标签 统计

seo ×1

url-rewriting ×1