x First time here? Check out the FAQ
  • Avatar248posts530karma

    404 page in a static html page

    Kate started this topic October 7, 2010 @ 10:30


    Instead of creating a 404 error page in the content and use the page ID, can´t I just make a static html page and save it in a folder in the root.
    If possible, what should I write in the config files?

  • Avatar4387posts5195karma
    adminComment with ID: 49130
    Dirk De Grave posted this reply October 7, 2010 @ 10:37

    Can save it anywhere in your umbraco installation, as it won't be processed by umbraco (it's a plain old static html page), just need to update your web.config according to this post.




  • Avatar248posts530karma
    Comment with ID: 49134
    Kate posted this reply October 7, 2010 @ 11:17

    Can´t see what Im doing wrong

    In my web.config I added this line

    <!--<customErrors mode="RemoteOnly" />-->
        <customErrors mode="On" redirectMode="ResponseRewrite" defaultRedirect="fejlside.aspx" />

    In my umbracosettings.config I change it back to this

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

    I have placed the fejlside.aspx at the same level as my web.config

    Can you se what else I can do?

  • Avatar4387posts5195karma
    adminComment with ID: 49137
    Dirk De Grave posted this reply October 7, 2010 @ 11:41

    you shouldn't be using the <errors> anymore, only setting the web.config value. Can you set defaultRedirect="/fejlside.aspx"?




  • Avatar248posts530karma
    Comment with ID: 49139
    Kate posted this reply October 7, 2010 @ 11:51

    I have deleted the <errors> in th umbracosettings.config and and change the path but nothing helps


  • Avatar249posts425karma
    Comment with ID: 76219
    Bogdan F. posted this reply May 6, 2011 @ 12:32

    I'm having the same problem, I've set in web.config but at least in case of a 404 I still get the "No umbraco document matches the url" page. I remember doing the same for a 4.5.2 website and it worked fine. Did you manage to find a solution?

    EDIT: the problem was in 404handlers.config . I did remove the contents of <NotFoundHandlers>, but not the node itself. Removing it solved it.

Please login or Sign up To post replies