Change WordPress Login URL From /wp-login.php to /login

I have already explained how you can change the logo on WordPress login page, and how to change the dashboard logo in WordPress. If you want to change the default login url in WordPress from /wp-login.php to /login, then here’s the procedure:

Open the .htaccess file, and add this code before any WordPress rewrite rules,

RewriteRule ^login$ [NC,L,R]

This code will redirect any one visiting to to, and you can then login at this new login url.

If you are not sure about editing the .htaccess file yourself, then you can use this plugin to automatically add this rule to the .htaccess file.

If you want more control then just changing the login url, then you can use the hide login plugin. This plugin lets you change login url, admin url, logout url and registration url of WordPress. It also lets you specify where to redirect after login.

Post your comment below if you still can’t change the WordPress login url.


Your email address will not be published. Required fields are marked *