I have an EpiServer 7 site, that I am trying to wire up a custom 404 page to.
I solution works fine when running locally. When I deploy to the staging server (site not get live), it takes 2-3 minutes to display my 404 page. If I log onto the server, and run the same URL, I get the custom 404 page displaying right away?
My entry inside web.config is (inside ):
<httpErrors errorMode="Custom" existingResponse="Replace">
<clear />
<error statusCode="404" responseMode="ExecuteURL" prefixLanguageFilePath="en" path="/system/pagenotfound/" />
</httpErrors>
Any ideas?
I had the same kind of issue, do you have a custom route mapping? Like:
Remove that route and add the following catch all route: