How can I use ampersand ( & ) in my rules for rewriting url in web.config file?
I want to rewrite the url:
http:
in
http:
I wrote the following rule in my web.config:
<rule name="RuleName" stopProcessing="true"> <match url="^index.asp?SomeParameter=SomeValue&SomeId=00" ignoreCase="true" /> <action type="Redirect" url="Section/Page" appendQueryString="false" /> </rule>
But I am having problems with this ampersand ( & ) in the input url. When trying to rewrite I get:
The requested page is not available because the associated configuration data for the page is invalid.
I tried to parse the ampersand at %26 , but I am getting the same error.
Pato
source share