asp.net - I am using UrlRewritingNet.UrlRewrite dll, how to redirect to Error page when bad request get fired? -


currently using urlrewritingnet.urlrewrite dll url rewriting in asp.net #3.5.

without using special character works fine ex. url1. after giving special characters in url throws bad request error ex. url2

url1: http://www.example.com/search/0253

url2: http://www.example.com/search/0253:0253

to handle error, want redirect other error page, how can this?

on iis 7+ can define error pages statuses, 400 bad request :

<httperrors>   <error statuscode="400" path="/bad-request.aspx" prefixlanguagefilepath="" responsemode="executeurl"/> </httperrors> 

or trough iis console go error pages , add custom error page status code 400 :

enter image description here


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -