iis 7 - Getting IIS7 to rewite but still pass querystring parameters? -


I am trying to establish a rewrite rule in IIS7 to hide page extensions (.spex), but On field and query string parameters page

For example, if the original URL is:

www.mysite.com/page.aspx?pid=a

How can I

P>

write to www.mysite.com/page

but still pass the query string value on the page?

if you do it on the web. If you are putting in the config, you can appendQueryString

  & lt; Rule name = "Myrtle" stop processing = "true" & gt; & Lt; Mail url = "Ignore your regex}" Case = "false" /> & Lt; Action type = "rewrite" url = "{your rewrite}" appendQueryString = "true" /> & Lt; / Rules & gt;  

If you are doing it in IIS Manager, then check the "Add Query String" box.


Comments