asp classic - 404 Custom is blank with asp extension -
my 404 custom setup shows blank page if has asp extension. if change extension of custom error page .html, custom error page shows correctly.
this web.config file
<httperrors errormode="custom" defaultresponsemode="executeurl" existingresponse="auto"> <remove statuscode="404" substatuscode="-1" /> <remove statuscode="500" substatuscode="-1" /> <error statuscode="500" substatuscode="100" prefixlanguagefilepath="" path="/error_pages/error500.asp" responsemode="executeurl" /> <error statuscode="404" substatuscode="-1" prefixlanguagefilepath="" path="/error_pages/error404.asp" responsemode="executeurl" /> </httperrors> i cant figure out... driving me nuts
if redirect when error happens, use...
<httperrors errormode="custom"> <remove statuscode="404" substatuscode="-1" /> <error statuscode="404" prefixlanguagefilepath="" path="/time.asp" responsemode="redirect" /> </httperrors> you may hide redirection, using...
<httperrors errormode="custom"> <remove statuscode="404" substatuscode="-1" /> <error statuscode="404" prefixlanguagefilepath="" path="/time.asp" responsemode="executeurl" /> </httperrors> you can use custom errors (of asp.net) so...
<system.web> <customerrors mode="on"> <error redirect="time.asp" statuscode="404" /> </customerrors> </system.web>
Comments
Post a Comment