This is actually quite a common question from our students. They start building their Drupal site. Then they go to work with their blocks or menus.
Then they accidentally disable the “Log in” menu link. There is no “Log in” link displayed on the site anymore. Neither for them nor for their visitors.
In this short tip, you will learn how to login to your Drupal admin page in such situation.
The image below shows the normal Drupal login link. When you first install Drupal it usually appears in the top right-hand corner of your site.
For example, you may accidentally disable it in your Drupal admin dashboard:
Then, the “Log in” link disappears.
How can you now log in back to your site and get the “Log in” link back to its place?
So here’s what you do. Use one of these URLs:
- If you don’t have clean URL’s turned on you need to use this http://www.example.com/index.php?q=user
- If you do have clean URL’s turned on you can use this http://example.com/user
Visit one of those URLs and you should see a login screen like the one below:
Once you are back to your admin panel, simply enable the menu link, and you are all set.