Some static URL rewrite section from my web.config:
<rewrite>
<rules>
<rule name="Cities" stopProcessing="true">
<match url="Cities/?$" ignoreCase="true" />
<action type="Rewrite" url="/Cities.aspx" appendQueryString="true" />
</rule>
</rules>
</rewrite>
I works fine, but I would like to add dynamic rewrite rules at runtime. Is there a smart way to add and remove URL rewrite rules in C# at runtime?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.