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

404 error with 'Bin' in url re-writer

$
0
0

Hi,

I have a web application which is using the url re-writing. All the rules are working as expected, except for the below.

<rule name="Redirect-ExactSearch" stopProcessing="true"><match url="^Public/Products\.aspx$" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false"><add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" /><add input="{QUERY_STRING}" pattern="^exactsearch=([^=&amp;]+)$" /></conditions><action type="Redirect" url="Public/Products/ExactSearch/{C:1}" appendQueryString="false" /></rule><rule name="Rewrite-ExactSearch" stopProcessing="true"><match url="Public/Products/ExactSearch/([^/]+)/?$" /><conditions logicalGrouping="MatchAll" trackAllCaptures="false"><add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /><add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /></conditions><action type="Rewrite" url="Public/Products.aspx?exactsearch={R:1}" /></rule>

The above rules will redirect and rewrite the following url "http://mydomain.com/Public/Products.aspx?ExactSearch=test" into "http://mydomain/Public/Products/ExactSearch/test". It works correctly for whatever I enter in the searchbox (exactSearch querystring) but when I enter the text "bin" in the url ("http://mydomain.com/Public/Products/ExactSearch/bin"), it will result in a 404 error. 

Anyone found this problem too? Or anyone have any idea how to tackle it, please?


Viewing all articles
Browse latest Browse all 26542

Trending Articles



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