AI OnAI Off
Try changing your httperrors section by adding existingResponse="Replace" as follows:
<httpErrors errorMode="Custom" defaultResponseMode="ExecuteURL" existingResponse="Replace">
Worked for me too! Thanks so much David for the solution and to Chris for letting me tag along your thread! :)
In the EPiServer.config we have 3 default VPP folders: Documents, Global and PageFiles. We have our error handler setup like the below in the web.config file and this works for any url apart from /Global, /Documents and /PageFiles:
<httpErrors errorMode="Custom" defaultResponseMode="ExecuteURL" >
<remove statusCode="500"/>
<remove statusCode="404"/>
<error statusCode="500" path="/Error/500" responseMode="ExecuteURL" />
<error statusCode="404" path="/Error/404" responseMode="ExecuteURL" />
</httpErrors>
If you browse to a url using any of the VPP folder names we get the EPiServer 404 page instead of our own custom page, is there a way to force EPiServer to use our 404?