0
我试图改写由DB动态创建我目前的网址,搜索引擎友好的URL的web.config URL重写语法
如http://mysite.co.uk/clubs/?club=AFC%20Wimbledon
将成为http://mysite.co.uk/clubs/afc-wimbledon
我有以下的网络。配置似乎什么都不做;
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="RedirectUserFriendlyURL1" stopProcessing="true">
<match url="^clubs/?club=([A-z0-9]+)"/>
<conditions>
<add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
</conditions>
<action type="Redirect" url="clubs/{R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>