由于Http Header Redirect,谷歌没有索引网站

时间:2018-02-19 04:39:58

标签: asp.net-mvc seo google-webmaster-tools

在网站管理员中,我已经开发了一个带有asp.net mvc5框架的网站 www.esfandbar.com 我是SEO新手,我要谷歌在谷歌网站管理员索引我的网站大约一个月,但谷歌没有索引,当我用http://www.siteliner.com检查问题时,总索引为0我发现除了主页所有另一页 跳过 Http Header Redirect 请查看此照片

我所有的SEO工作都是在web.config文件中设置规则:

  1. 将所有无www重定向到www
  2. 将所有http请求重定向到https
  3. 从Urls
  4. 中删除结尾的shash(/)

    我该如何解决这个问题?谢谢你的时间

    这是web.config中的重定向规则

    <rewrite>
      <rules>
      <rule name="rule" enabled="true" stopProcessing="true">
                        <match url="(.*)" />
                        <conditions>
                            <add input="{URL}" pattern="[A-Z]" ignoreCase="false" />
                        </conditions>
                        <action type="Redirect" url="{ToLower:{URL}}" redirectType="Permanent" />
      </rule>
      <rule name="RemoveTrailingSlashRule1" stopProcessing="true">
        <match url="(.*)/$" />
        <conditions>
          <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
          <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
        </conditions>
        <action type="Redirect" url="{R:1}" />
      </rule>
    <rule name="Rewrite domain requests" stopProcessing="true" enabled="true">
          <match url="(.*)" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^(www.)?([.a-zA-Z0-9]+)$" />
            <add input="{HTTP_HOST}" pattern="^www\.esfandbar\.com$" negate="true" />
          </conditions>
          <action type="Redirect" url="http://www.esfandbar.com/{R:1}" redirectType="Permanent" appendQueryString="true" />
    </rule>
            <rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="true">
            <match url="(.*)" />
            <conditions logicalGrouping="MatchAny">
              <add input="{SERVER_PORT_SECURE}" pattern="^0$" />
            </conditions>
            <action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
            </rule>
    
    </rules>
    </rewrite> 
    

0 个答案:

没有答案
相关问题