asp.net - not found error not handling in web.config -
i trying put customerror tag in web.config file.. still doesn't redirect default url
http://www.lacopainn.com/page/2/?p=dbasndwefxknyafc&wpmp_switcher=mobile
here site. when enter url shows error of
not found
the requested document not found on server.
how can handle error , redirect detault page??
please help
you need put following tag under system.web tag in webconfig file
<system.web> <customerrors mode="on"> <error statuscode="404" redirect="default.aspx" /> </customerrors> </system.web>
hope fix problem.
Comments
Post a Comment