0
я хочу сделать постоянную переадресацию 301 от http://www.example.com/ к http://www.example.com.301 Перенаправление - буксируемый Слэш web.config
Я пробовал под кодом в web.config, но не работал. Есть ли какие-либо другие изменения, которые мне нужно сделать?
<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>