Site structure
Version 5.x > Site structure > CMS Desk Access Denied page View modes: 
User avatar
Member
Member
jasonlancester-gmail - 10/22/2010 4:46:11 PM
   
CMS Desk Access Denied page
We want to change the page that users are directed to when they are not authorized to view CMS Desk, e.g. when a user specifically requests the URL 'http://<site>/CMSDesk/' instead of being directed to /CMSDesk/accessdenied.aspx we would like them to go to /SomeOtherPage.aspx

I've checked the site settings, web.config files, code-behind files and... I can't see anything that would direct users to CMSDesk/accessdenied.aspx so I'm kind of puzzled at how this is happening.

Last resort would be doing a response redirect in the code-behind of the access denied page but we'd rather not do that if possible.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 10/25/2010 9:23:57 AM
   
RE:CMS Desk Access Denied page
Hello,

The only way how to do this without the source code would be to either change the accessdenied.aspx file directly or redirect from this file to an another one. You could also catch all requests for this file in the Global.asax.cs file and redirect the visitor there.

Best regards,
Boris Pocatko