Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 28504

rewrite not working when incoming url is encoded

$
0
0

I'm trying to redirect a url with web.config rewrite

<rule name="Nav Static Redirect 2" stopProcessing="true"> 
 
<match url="^Nav\.aspx/Page=/ListNow/Property\.aspx" ignoreCase="true" />  
 
<action type="Redirect" redirectType="Permanent" appendQueryString="false"  
     
url="http://www.mydomain.com/featured-listings.html" /> 
</rule> 

It works for this url: http://www.mydomain.com/Nav.aspx/Page=/ListNow/Property.aspx?PropertyID=2212548&=&

but not the encoded one: http://www.mydomain.com/Nav.aspx/Page=%2FListNow%2FProperty.aspx%3FPropertyID%3D2212548%26%3D%26

How do I fix this?


Viewing all articles
Browse latest Browse all 28504


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>