So I have one simple problem but somehow doesnt seem to work. I have one URL http://www.domain.com/%20#axzz2ZX4J0KAS
which I want to redirect to http://www.domain.com/page-name.htm
. I have tried so many combinations in IIS URL Rewrite/web.config and they all seem to work inside test pattern dialog but none works in browsers.
1.
<rule name="Redirect%20InHomePage" enabled="true" stopProcessing="true">
<match url="^(.+)domain\.com/(\s|%20)(.+)" ignoreCase="true" />
<action type="Redirect" url="http://www.domain.com/page-name.htm" />
</rule>
2.
<match url="(.+)/%20(.+)" ignoreCase="true" />
3.
<match url="(.+)domain.com/ (.+)" ignoreCase="true" />
4.
<match url="(.+)domain.com/(\s|%20)(.+)" ignoreCase="true" />
As you can see I tried all of above patterns, they all work fine in Test Pattern dialog but when i browse URL, it always converts %20 to space and rule doesn't work for redirect.
Please help me for this simple yet unsolved problem, if anyone knows what am I missing.