0
我想永久重定向逃逸问号Tuckey URL重写(XML /正则表达式)
/?industry_id=3 to /industry/3/athletics
我试过的规则:
<rule>
<from>/?industry_id=3$</from>
<to type="permanent-redirect" last="true">/industry/3/athletics</to>
</rule>
<rule>
<from>/?industry_id=3$</from>
<to type="permanent-redirect" last="true">/industry/3/athletics</to>
</rule>
<rule>
<from>/\\?industry_id=3$</from>
<to type="permanent-redirect" last="true">/industry/3/athletics</to>
</rule>
<rule>
<from>/\?industry_id=3$</from>
<to type="permanent-redirect" last="true">/industry/3/athletics</to>
</rule>
但没有成功。
我这个尝试之一:
<rule match-type="regex">
<note>Request page is deprecated</note>
<condition type="query-string">industry_id=3</condition>
<from>/</from>
<to type="permanent-redirect" last="true">/industry/3/athletics</to>
</rule>
这是工作的重写,但后来我得到了“过多的重定向”,因为其他规则我想,即使参数最后=“真”设置
是的,我认为可能是这种情况,谢谢你的建议BoneGoat,看起来很奇怪的是,最后一个等于真,所以它不应该干涉没有其他规则的逻辑 – 2013-04-05 14:49:30