How to Change the Default WordPress Login URL

Have you ever wanted to change the default WordPress login URL to something friendly and easy to remember?

We’re going to change the URL http://www.mywebsite.com/wp-login.php to http://www.mywebsite.com/login

Edit the .htaccess file in the root folder of your website and add the following line:

RewriteRule ^login$ http://www.mywebsite.com/wp-login.php [NC,L]

Replace mywebsite.com with your own domain name.

You can of course use anything else to replace login too.

Keep In Touch


Wil is a dad, consultant, developer, conference organiser, speaker and business mentor. He co-organizes the WordPress Sydney meetup group and has been on the orgnising committee for WordCamp Sydney since 2014. He speaks at many technical events and contributes to the WordPress open source project. His likes are chillies, craft beer and electrogravitics.

3 thoughts on “How to Change the Default WordPress Login URL”

  1. Hi there Wil!

    I’ve seen quite some posts now on this tiopic, can it really be this easy to make your wp site more safe?


  2. Aha, ok, but now I want this while hiding wp-aqdmin and wp-login.php, do you know how to accomplish that?

  3. it just redirecting not hiding or changing my WP log in URL but still its a good article for those who want a esay to learn URL

Comments are closed.

If You Enjoyed This Post
Join Our Newsletter
Give it a try, you can unsubscribe anytime.