Asp.net 301重定向-尾部斜杠web.config
我想执行从到的永久301重定向 我在web.config中尝试了下面的代码,但不起作用。 我还需要做其他的改变吗Asp.net 301重定向-尾部斜杠web.config,asp.net,redirect,web.config-transform,Asp.net,Redirect,Web.config Transform,我想执行从到的永久301重定向 我在web.config中尝试了下面的代码,但不起作用。 我还需要做其他的改变吗 <rule name="SEO - Remove trailing slash" stopProcessing="false"> <match url="(.*)/$" /> <conditions> <add input="{REQUEST_FILENAME}" matchType=
<rule name="SEO - Remove trailing slash" stopProcessing="false">
<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>
您不需要重定向根域,请阅读以下内容