Move 403 to page

Component ID

2872233

Component name

Move 403 to page

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

82

Component created

Component changed

Component body

This module will redirect the 403 request to different page depend on user's roles.

When user access a page that they don't have permission, and you wish:

  • anonymous user should be redirected to page-1;
  • authenticated user should be redirected to page-2;
  • custom-role user should be redirected to page-3;

Yes,this module will do it.

If user has multiple roles, this module will get only one role settings from
configure by weight order, the lighter weight ,the higher priority.

Installation

Put the project folder under sites/*/modules
Install the module in /admin/modules
In admin/config/system/site-information page,set default 403 to m4032page

Configure

admin/config/system/m4032page