Redirect 403 to User Login

mikesmullin - January 31, 2008 - 01:56

Redirect the HTTP 403 error page to the Drupal /user/login page with an optional message that reads:

"Access denied! You must login to view this page."

Also, the desired page is appended in the url query string so that, once login is successful, the user is taken directly where they were originally trying to go.

Releases

Official releasesDateSizeLinksStatus
6.x-1.22009-Jul-148.66 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-1.12009-Jul-147.49 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
7.x-1.x-dev2009-Jul-158.67 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.