Is it possible to redirect anonymous users from /admin to /user? Say I have a site called drupal.local, the user login page would be drupal.local/user. And the admin 'homepage' would be drupal.local/admin.

The problem is that lots of people seem to expect drupal.local/admin to lead them to the login page if they are not already logged in. Unfortunately instead of doing that, they just get:


  You are not authorized to access this page.


I guess (thinking about it) a decent solution would be to put a link to the login page in the 403 error template text - but it would be more elegant to redirect the user to /user if they weren't already logged in.

Is it possible to do such a thing?
Sure, you can install a module like Redirect 403 to User Login:

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

&quot;Access denied! You must login to view this page.&quot;

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.