Copied to clipboard

Flag this post as spam?

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


  • Francis Pion 3 posts 83 karma points
    Jul 23, 2021 @ 16:17
    Francis Pion
    0

    v9 | umbracoSettings.config

    Hi, I'm testing Umbraco v9 right now (not in the cloud).

    I have created the following file in my project: /umbraco/config/umbracoSettings.config

    <?xml version="1.0" encoding="utf-8" ?>
    <settings>
      <backOffice>
        <tours enable="false"></tours>
      </backOffice>
      <content>
        <errors>
          <error404>412b2230-db1f-449b-aa18-f418a4ea6033</error404>
        </errors>
      </content>
    </settings>
    

    The GUID resolves to an existing page, but the default ugly 404 NotFound page is still displayed.

    How do I setup a 404 NotFound page in the V9? The documentation haven't been updated yet (which is perfectly normal). https://our.umbraco.com/documentation/reference/config/umbracosettings/

    Thank you!

  • Marc Goodson 1577 posts 10543 karma points MVP 6x c-trib
    Jul 25, 2021 @ 09:41
    Marc Goodson
    100

    Hi Francis

    With V9 and .net core (v5) framework, one of the biggest changes to adapt to is how configuration is performed... gone is the XML configuration of things! - we now have JSON files that contain the config settings.

    There is a good introduction to the change for V9 here:

    https://our.umbraco.com/documentation.../Reference/V9-Config/

    and specifically for 404 error pages there is this:

    https://our.umbraco.com/documentation.../Reference/V9-Config/ContentSettings/#error-404-collection

    Hopefully that gives you enough of a steer to get a custom 404 in place for V9!

    regards

    Marc

  • Francis Pion 3 posts 83 karma points
    Jul 26, 2021 @ 14:34
    Francis Pion
    0

    Hi Marc,

    Thanks for your reply!

    Changing XML to JSON is a really good thing - it allows us to customize the deployment process with a high degree of flexibility.

    Thanks to your help, I've been able to setup a 404 page as well as a custom 500 page, and found the equivalent to the settings I used with the V8.

    Best regards!

Please Sign in or register to post replies

Write your reply to:

Draft