I have a website on Drupal 7. The default login page is "sitename.com/user". But, in order to have more security, I would like to change this url. How Do I do that? Do I have to install a module or is possible to do that with a php code on template.php?

Thanks a lot!

Comments

VM’s picture

thanasis57’s picture

This module reports an incompatibility with the i18n_variable module.

How about multilingual sites? Is there an easy way to customize the login url?

thanasis57’s picture

This just to mention that I have enabled this module with i18n_variable and I have absolutely no problems.

klidifia’s picture

/**
 * Implements hook_url_outbound_alter().
 */
function custom_module_url_outbound_alter(&$path, &$options, $original_path) {
  // Alter path for login.
  if ($path === 'user/login') {
    $path = 'new-path';
  }
}