To log into WordPress, we use the URL http://site.com/wp-login.php for the login form. Optionally http://site.com/wp-admin also opens the same. Although the visitors to your site don’t have to deal with it, you may want to have a simpler URL like http://site.com/login or http://site.com/signin. This is basically helpful if you are working on a WordPress project for a client who doesn’t know much about WordPress. A simpler login URL would be much easier to remember. You can change the login URL of WordPress by simply adding a line to your .htaccess file.
To change the login URL, open your .htaccess file that is located at your root directory. Add the following line of code to it.
RewriteRule ^login$ http://site.com/wp-login.php [NC,L]
Make sure to add it before the line where the read/write rule is specified.
This rule doesn’t redirect your older login URL http://site.com/wp-login.php to http://site.com/login. It simply rewrites the URL. If you also want to redirect the older WordPress login URL to the new login URL, add this code instead.
RewriteRule ^login$ http://site.com/wp-login.php [NC,L,R]
Here we have simply added a “R” at along with NC and L; a rule that redirects the older login URL to the new one.
If you don’t want to play around with the .htaccess file, you can do this easily using Simpler Login URL plugin that was inspired by this post. Simply upload this plugin, configure a bit and you’ll get your simpler login URL working.