I have several sections
<location path="Page1.aspx">
<system.web>
<authorization>
<allow roles="superadmin"/>
<deny users="*" />
</authorization>
</system.web>
</location>
<location path="Page2.aspx">
<system.web>
<authorization>
<allow roles="admin"/>
<allow roles="superadmin"/>
<deny users="*" />
</authorization>
</system.web>
</location>
I want to make a redirect to the specified page if authorization failed. And this is not general page. I want to make a specific redirect based the page user wants to open. How it can be done?
Thanks in advance.