Copied to clipboard

Flag this post as spam?

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


  • How Do I Delete My Account? 68 posts 433 karma points
    Aug 03, 2015 @ 20:07
    How Do I Delete My Account?
    0

    Custom 404 error page won't "fire"

    Hi all!

    I've created a custom 404 Not Found error page that won't "fire" when it should. Instead. I get the standard error page shown by the web host.

    My site is hosted on a IIS (unknown version) in an shared environment. Does anyone have clue?

  • Dennis Aaen 4499 posts 18254 karma points admin hq c-trib
    Aug 03, 2015 @ 20:20
    Dennis Aaen
    100

    Hi Daniel,

    Did you have a page in your Umbraco installation that should be used for the 404 error page.

    If so, have you then updated the errors section in the UmbracoSettings.config with the right id.

    <errors>
        <!-- the id of the page that should be shown if the page is not found -->
        <!-- 
        <error404>
            <errorPage culture="default">1</errorPage>
            <errorPage culture="en-US">200</errorPage>
        </error404>
        -->
        <error404>1</error404>
    </errors>
    

    Errors and IIS7+

    You may find that your custom error page doesn't show, and instead IIS handles the error. To resolve this add the following key to your web.config just before the closing tag of the system.webServer section.

    <httpErrors existingResponse="PassThrough" />
    

    Try to see this documentation https://our.umbraco.org/documentation/Using-Umbraco/Config-files/umbracoSettings/

    Hope this helps,

    /Dennis

  • How Do I Delete My Account? 68 posts 433 karma points
    Aug 04, 2015 @ 11:23
    How Do I Delete My Account?
    0

    The line `did it as mentioned in @Jivan Thapa's link aswell.

    Thx alot :)

  • jivan thapa 194 posts 681 karma points
    Aug 03, 2015 @ 20:53
    jivan thapa
    1

    And If 404 error is from IIS server, You need to modify httpErrors on web.config file.

    https://our.umbraco.org/wiki/install-and-setup/configuring-404-pages

Please Sign in or register to post replies

Write your reply to:

Draft