【问题标题】:IIS URL rewrite path to querystringIIS URL 重写查询字符串的路径
【发布时间】:2016-04-16 20:35:46
【问题描述】:

需要一些帮助来指定重写规则:

http://example.com/page/my-unique-title

http://example.com/page?id=my-unique-title

请注意,它是网络表单应用程序,我正在使用友好网址。非常感谢任何帮助。

【问题讨论】:

    标签: asp.net iis url-rewriting


    【解决方案1】:

    试试这个:

                <rule name="myrule" stopProcessing="true">
                    <match url="page/(.*)" />
                    <action type="Rewrite" url="page?id={R:1}" />
                </rule>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-11-17
      • 1970-01-01
      • 1970-01-01
      • 2021-12-10
      • 1970-01-01
      • 2018-12-21
      • 1970-01-01
      • 2020-09-04
      相关资源
      最近更新 更多