Copied to clipboard

Flag this post as spam?

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


  • HitTheSky 7 posts 79 karma points
    Feb 08, 2016 @ 12:45
    HitTheSky
    0

    404 error page not working

    Hi,

    I created a 404 error page then set it to point to the page node as below in umbracoSettings.config

      <errors>
          <error404>1105</error404>
          <!-- 
            The value for error pages can be:
            * A content item's integer ID   (example: 1234)
            * A content item's GUID ID      (example: 26C1D84F-C900-4D53-B167-E25CC489DAC8)
            * An XPath statement            (example: //errorPages[@nodeName='My cool error']
          -->
          <!--
            <error404>
                <errorPage culture="default">1</errorPage>
                <errorPage culture="en-US">200</errorPage>
            </error404>
           -->      
        </errors>
    

    This was working fine locally, but then when I moved my site to a different server, I get the following error instead of my custom 404 page.

    enter image description here

    All files are exactly the same, am I missing something?

    Thanks

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Feb 08, 2016 @ 13:12
    Dennis Aaen
    0

    Hi HitTheSky,

    Have you checked, that the id of the 404 page, is the right id on the server where it´s not working?

    /Dennis

  • HitTheSky 7 posts 79 karma points
    Feb 08, 2016 @ 20:16
    HitTheSky
    0

    Hi Dennis yes I've checked and it's the same ID, both sites are pointing to the same database, just one is local and the other is on a testing server.

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Feb 09, 2016 @ 06:32
    Richard Soeteman
    1

    Hi,

    Your 404 page isn't handled by Umbraco but by IIS. Could be that the extension is not .aspx. Anyway you can configure this in web.config. Here is an article that explains that https://www.stokia.com/support/misc/web-config-custom-httperrors.aspx

    An alternative and a shameless plug :) Is to use SEO Checker http://soetemansoftware.nl/seo-checker that configures this for both Umbraco pages and other items (also with multi domain set-up)with one click.

    http://soetemansoftware.nl/seo-checker

    Hope this helps,

    Richard

  • Comment author was deleted

    Feb 09, 2016 @ 07:25

    Another easy way to manage your 404 pages is this plugin https://our.umbraco.org/projects/backoffice-extensions/umbraco-page-not-found-manager/ :)

  • HitTheSky 7 posts 79 karma points
    Feb 09, 2016 @ 11:42
    HitTheSky
    2

    Thanks for the help fellas and the suggested plugins, I'll be sure to check them out.

    I've managed to fix the issue as suggested Here, I needed to add

     <httpErrors existingResponse="PassThrough" />
    

    ...in Webconfig under system.webServer. I'd actually placed the above in the wrong place

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft