Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
How to make umbraco use custom 401 error page?
I have created custom umbraco content page and added the entry in umbracSettings.config:
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?
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
is working on a reply...