Quantcast
Channel: Optimizely Search & Navigation
Viewing all articles
Browse latest Browse all 6894

Redirect user to specific page if unauthorised

$
0
0

I am building a website and we are using a virtual role to restrict access to certain parts of the site. I have tested this and it works correctly but now I just get a 401 error page when I go to one of the pages and IsInVirtualRole returns false. What I would like to do is redirect the user to a specific login page if they are unauthorised to view a page due to not being in this specific virtual group.

How can I do this?


Viewing all articles
Browse latest Browse all 6894

Trending Articles