I asked this a while back and got nowhere. Sorry for the repost but it needs to be resolved (somehow).

If a visitor types in a URL for which they are not authorized, I do -not- want them to see a 403 page. I just want them to be redirected to the site home page.

I entered...


...in the 403 field under admin/config/system/site-information but that apparently does nothing. We're using LoginToboggan which (I think) overrides this.

How can I do this?



1 Answer 1


Instead of <front> try using node or 'home page path' if you have customized home page.

...in the 403 field under admin/config/system/site-information.

Ref: Redirect 404 errors to home page?

  • "node" is the default front page but in my experience it is usually changed to something else.
    – rooby
    Apr 8, 2015 at 2:28
  • Can you be more specific on how it usually changed. I verified this myself and it worked!! Apr 8, 2015 at 2:35
  • Technically it works but if the website is not using "node" as the home page then you will be directing people to the wrong page. The "node" page is just a listing of content that has been promoted to front page but a large number of sites have home page requirements that don't match the "node" page so they implement a more custom home page using an individual node page, panels, an empty page full of blocks, etc. For more information see drupal.org/node/265172
    – rooby
    Apr 8, 2015 at 2:46
  • They could replace "node" in your answer with whatever they have the home page configured to, however that isn't ideal and won't work in all possible cases if the home page is more dynamic, for example different home pages for different user roles.
    – rooby
    Apr 8, 2015 at 2:47
  • Since in the actual question jchwebdev was trying to achieve this through back-end site configuration, I suggested to use node. If your home pages are dynamic, then you have a different solution through code. Identify if page is 404 or 403 in template.php and redirect users accordingly. Ref: drupal.stackexchange.com/questions/23237/… Apr 8, 2015 at 2:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.