Easily Change Default WordPress Login URL

One of the most asked questions by new WordPress self-hosted users is “What’s the login URL of my site?”

By default, you can access to the login by by typing yourdomain.com/wp-login.php in your web browser. Don’t forget to change the yourdomain.com to your website’s domain.

Also, if users simply type yourdomain.com/login in the browser, most of the time, it will automatically redirect to yourdomain.com/login. If that’s the case, you’ve nothing more to do.

Unfortunately, for some sites, typing yourdomain.com/login in the browser simply will return a 404 Error Page Not Found. If that’s the case, you may want to install Rename wp-login.php plugin especially if you’re building a site for clients. If will definitely saves lots of time than keeps reminding them their site login URL.

Once you’ve installed the plugin, you can set the nice slug for your login URL from Settings > Permalink.

login URL

Once you’re done, simply hit the Save Changes button. Next, try open a new browser or if you want, logout from your account and type in the domain of your site with the new slug you’ve just created. In this example, /login/ is the new slug and therefore yourdomain.com/login will be the new login page for the site.

This is a little plugin which could be useful for some WordPress users out there and we hope this tutorial helped you to change the default WordPress login URL to something that you can easily remember.

Comments

  1. Richie KS says

    hi, just curious, will this prevent any future brute force login attack if the wp-login.php change to /login/? i’m looking for solution on this.

    • Editor says

      If code snippet what you’re looking for, take a look at this article by AgentWP where you need to add some code to your .htacess

      http://www.agentwp.com/change-wordpress-login-url-from-wp-login-php-to-login

      Disclaimer: I haven’t tested the code.

Leave a Reply

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