且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将用户重定向到403拒绝访问的正常页面。

更新时间:2023-12-01 23:50:34

在microsoft网站上找到一篇有用的文章。希望这能解决您的问题。



http://support.microsoft .com / kb / 306355 [ ^ ]

HI all,
we need to change the default 403 forbidden access page to something else in window authentication.

the idea is if user pass window authentication then user will be redirected to admin panel based on the roles. if user do not pass window authentication than it will take user to some particular page to show him normal data based on normal user role.

currently what happen that if user fails window authentication than system automatic redirect to a page which says 403 access denied. you are not authorized to view this site.

Found a useful article on microsoft's site. Hope this will solve your problem.

http://support.microsoft.com/kb/306355[^]