【发布时间】:2018-03-01 23:50:06
【问题描述】:
在网络配置上,我将以下代码编写为
<system.webServer>
<rewrite>
<rules>
<rule name="catalogsmain" stopProcessing="true">
<match url="\/blog\/category\/" />
<action type="Redirect" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
也试过了
<system.webServer>
<rewrite>
<rules>
<rule name="catalogsmain" stopProcessing="true" patternSyntax="ExactMatch">
<match url="/blog/category/" />
<action type="Redirect" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
当我浏览网址时 http://localhost:55390/blog/category/healthy-living-and-advice
不会变成
http://localhost:55390/healthy-living-and-advice
如何重写网址?
我想改变
http://mitesh.com/blog/category/healthy-living-and-advice
到
【问题讨论】:
标签: c# asp.net url-rewriting nopcommerce