0

I tried to provide a rewrite url rule in web.config:

<rewrite>
     <rules>
        <rule name="RedirectToMainPage" stopProcessing="true">
           <match url="(&lt;|&gt;|&quot;|&apos;)+" />
           <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 ?

Snake Eyes
  • 16,287
  • 34
  • 113
  • 221

0 Answers0