mercredi 3 mai 2017

ASP.net Invalid URL redirect (C#)

I am using custom Errors tags to redirect to a page when ever an url is not found.

  <customErrors mode="On" redirectMode="ResponseRewrite">
  <error statusCode="404" redirect="error.aspx" />
</customErrors>

But the case is this enter image description here

This is my page and the url is correct and it loads and works correctly. But whenever i type http://ift.tt/2paRqjl it dosent redirect to the error page neither it loads properly. enter image description here

So i want it to redirect to the error page or remove that unwanted string from url and load the page correctly.

Can someone help me to get an idea how to do that ? thank you.




Aucun commentaire:

Enregistrer un commentaire