Copied to clipboard

Flag this post as spam?

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


  • nickornotto 403 posts 907 karma points
    Jun 12, 2018 @ 13:03
    nickornotto
    0

    How to make umbraco use custom 401 error page?

    I have created custom umbraco content page and added the entry in umbracSettings.config:

    <errors>
      <error401>
        <errorPage culture="default">2299</errorPage>
      </error401>
    </errors>
    

    But the custom page does not display for unauthorised access. It displays default IIS page.

    How to redirect a user correctly to custom 401 error page?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Jun 12, 2018 @ 14:41
    Jan Skovgaard
    0

    Hi Manila

    It's not possible to use the errors section in the umbracoSettings.config for this purpose. This is only intended for setting up 404 pages, which is also mentioned in the documentation here https://our.umbraco.org/documentation/reference/config/umbracosettings/#errors

    I'm no expert at setting up custom error pages but I guess it's something you can handle in the web.config file.

    These links might be useful https://docs.microsoft.com/en-us/iis/configuration/system.webserver/httperrors/

    https://stackoverflow.com/a/32491373

    https://weblog.west-wind.com/posts/2017/Jun/01/Bypassing-IIS-Error-Messages-in-ASPNET

    I hope this helps :-)

    /Jan

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies