簡體   English   中英

IIS URL重寫查詢字符串的路徑

[英]IIS URL rewrite path to querystring

需要一些幫助來指定以下重寫規則:

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

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

請注意,這是網絡表單應用程序,我正在使用friendlyurls。 任何幫助,不勝感激。

嘗試這個:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM