码迷,mamicode.com
首页 > Web开发 > 详细

百度网站改版301重定向记录 提示 跳转关系与规则不符

时间:2020-03-18 09:55:03      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:pattern   环境   cond   改版   NPU   fail   news   mat   host   

由于傻傻的没有看说明,改版必须先301重定向 ,然后在后台添加可以审核过! 如果不做301 是不会通过效验!!

 

百度网站改版301重定向记录 

 

由于不太会写复杂的规则 我只能用简单的 规则来解决! 环境是宝塔

 

<rewrite>
<rules>
<rule name="Fail bad requests">
<match url=".*"/>
<conditions>
<add input="{HTTP_HOST}" pattern="www.xx.com" negate="true" />
</conditions>
<action type="AbortRequest" />
</rule>
<rule name="Redirect from blog">
<match url="^a/IQOSnews/([0-9]+)/([0-9]+)/([0-9]+).html" />
<action type="Redirect" url="IQOSnews/{R:1}{R:2}{R:3}.html" redirectType="Found" />
</rule>

</rules>
</rewrite>

<rewrite>
<rules>
<rule name="Fail bad iqoswenti">
<match url=".*"/>
<conditions>
<add input="{HTTP_HOST}" pattern="www.xx.com" negate="true" />
</conditions>
<action type="AbortRequest" />
</rule>
<rule name="Redirect from blog">
<match url="^a/iqoswenti/([0-9]+)/([0-9]+)/([0-9]+).html" />
<action type="Redirect" url="iqoswenti/{R:1}{R:2}{R:3}.html" redirectType="Found" />
</rule>

</rules>
</rewrite>

百度网站改版301重定向记录 提示 跳转关系与规则不符

标签:pattern   环境   cond   改版   NPU   fail   news   mat   host   

原文地址:https://www.cnblogs.com/cink/p/12515119.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!