永久リダイレクトしたい
/?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>
これは書き換えのために機能していますが、パラメーター last="true" が設定されていても、他のルールが原因で「リダイレクトが多すぎます」が発生しました