Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Graham Carr 277 posts 389 karma points
    Aug 24, 2015 @ 10:11
    Graham Carr

    Custom 404 Page


    I have setup custom error pages following the details in the link below:

    This all works fine when it is a page being requested that does not exist. This does not work however if the user is trying to access a PDF or some other file that does not exist.

    How do you go about handling such cases and redirecting to an appropriate error page?


  • Gary Devenay 39 posts 245 karma points
    Aug 24, 2015 @ 10:41
    Gary Devenay

    Hi Graham,

    You should be able to add a setting in your Web.Config file that will be the response for all HTTP requests that return a status code of 404. It would look something like the following:

        <error statusCode="404" path="/errors/404/" responseMode="ExecuteURL" />  

    You should be able to use an Umbraco page url as the path too if you wish to use the same page.


  • blackhawk 313 posts 1368 karma points
    May 30, 2017 @ 18:58

    The following actually solved my situation...

    <httpErrors existingResponse="Replace" errorMode="Custom">
            <remove statusCode="404" subStatusCode="-1" />
            <error statusCode="404" prefixLanguageFilePath="" path="..." responseMode="ExecuteURL" />

    ...simply adding existingResponse="Replace" errorMode="Custom" as attributes to the httpErrors element.

    All credit provided by the following post:

  • MuirisOG 382 posts 1283 karma points
    Jun 09, 2017 @ 14:55

    This is my second time posting this in the last few minutes :-D

    Try the steps in Morten Sørensen's blog below. These steps worked for me.

    (PS Thanks Morten)

  • Norbert Haberl 32 posts 115 karma points
    Oct 09, 2017 @ 15:15
    Norbert Haberl

    What about this ? Custom 404 in Umbraco 7

Please Sign in or register to post replies

Write your reply to: