You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

提交URL未被选为canonical 禁用SSL后Google仍选HTTPS如何解决

解决方案

1. 修正web.config重定向规则

你当前的规则仅处理了HTTP协议下的裸域名跳转请求,没有覆盖HTTPS协议的请求,这才导致HTTPS地址跳转到无关的控制面板。将你的重定向规则替换为以下内容,所有HTTPS请求会301永久重定向到对应路径的HTTP www版本站点:

<rules>  
    <rule name="Redirect http://example.com to http://www.example.com HTTP" patternSyntax="ECMAScript" stopProcessing="true">  
        <match url=".*"></match>  
        <conditions>  
            <add input="{HTTP_HOST}" pattern="^example.com$"></add>  
            <add input="{HTTPS}" pattern="off"></add>  
        </conditions>  
        <action type="Redirect" url="http://www.example.com/{R:0}" redirectType="Permanent" appendQueryString="true"></action>  
    </rule>
    <!-- 新增HTTPS请求全局跳转规则 -->
    <rule name="Redirect all HTTPS requests to HTTP www" patternSyntax="ECMAScript" stopProcessing="true">
        <match url=".*"></match>
        <conditions>
            <add input="{HTTPS}" pattern="on"></add>
        </conditions>
        <action type="Redirect" url="http://www.example.com/{R:0}" redirectType="Permanent" appendQueryString="true"></action>
    </rule>
</rules>

2. 更新Google Search Console配置

  • 进入此前添加的HTTPS版本站点属性,提交整站范围的HTTPS路径移除请求,告知Google该协议版本的站点已下线。
  • 切换到HTTP版本的站点属性,确认首选域设置为http://www.example.com,重新提交sitemap.xml,触发Google重新抓取站点内容。
  • 若存在已被收录的HTTPS链接,可单独提交索引移除申请,加快索引更新速度。

3. 校验基础配置

检查全站所有页面的canonical标签,确认均指向对应页面的HTTP www版本地址,和sitemap.xml中提交的地址保持一致。

配置完成后Google需要一定时间更新索引,通常2-4周就会将规范地址逐步替换为HTTP版本。

内容的提问来源于stack exchange,提问作者Safdar Safdari

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.09.24 08:45:02