I tried to provide a rewrite url rule in web.config
:
<rewrite>
<rules>
<rule name="RedirectToMainPage" stopProcessing="true">
<match url="(<|>|"|')+" />
<action type="Redirect" url="/" />
</rule>
</rules>
</rewrite>
So, if I access http://website.com/test"
then I will be redirected to http://website.com/
(this is ok also for '
character )
But, if I access: http://website.com/test>
then I didn't get redirected to http://website.com/
but 404 page is shown. (also for <
symbol)
Why ?