Inject script in Access denied page


  • Hi,

    i have a requirement where the user, when donot have access to the subsite, has to be redirected to a different site collection.

    i had tried to inject a script to all the pages of subsite, when URL contains AccessDenied.aspx, it can redirect to the different site. But, unfortunately, the script runs in all the pages of subsite except the access denied page.

    Kindly provide a solution to add script to the access denied page or a different approach for fixing this. 

    Thanks in advance.

    Harikrishna Baskaran

    Thursday, March 2, 2017 10:38 AM

All replies