Answer the question
In order to leave comments, you need to log in
Is it possible to show an error page with the old url?
Web.config:
<customErrors mode="On">
<error statusCode="404" redirect="/Http404.html" />
</customErrors>
Answer the question
In order to leave comments, you need to log in
You can use error handling at the web server level:
<system.webServer>
<httpErrors errorMode="Custom" existingResponse="Replace">
<remove statusCode="404" />
<error statusCode="404" path="/Http404.html" responseMode="ExecuteURL" />
</httpErrors>
</system.webServer>
<system.web>
<customErrors mode="On" redirectMode="ResponseRewrite">
<error statusCode="404" redirect="/Error404.aspx" />
</customErrors>
</system.web>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question