How To Change Your WordPress Login URL

How To Change Your WordPress Login URL

The short answer is to install, activate, and configure the Better WP Security WordPress plugin.

What We're Doing

With Better WP Security, you'll be able to change:

  • /wp-login.php to /login/
  • /wp-admin/ to /admin/
  • /wp-login.php?action=register to /register/
  • Or to whatever slugs you choose in the plugin settings

Step By Step Instructions

You really should change your login URL (and by login URL I mean the URLs for logging in, registering, and administration). Here's how to do it:

Step 1: Take a Full Backup

Take a full backup, not just a database backup. Like all backups, verify it's completed and in your desired location before proceeding to the next step. You can take a full account backup from within cPanel.

Step 2: Install and Activate the Better WP Security plugin

At the recommendation of several WordPress gurus, I tried Better WP Security for this purpose alone (although it has a bunch of great features), and it worked like a charm right from the start.

Step 3: Setup the Better WP Security Plugin

Once the Better WP Security plugin is installed, follow these steps:

  1. Open the plugin's wp-admin options page.
  2. Follow the first 3 setup steps as shown in the screenshots below:
    1. Make your backup selection.
    2. Allow the plugin to change WordPress core files (read the warning first).
    3. Click the "Secure My Site From Basic Attacks" button.
  3. Click the "Hide" tab.
    1. Check the "Enable Hide Backend" box.
    2. Enter your desired login, register, and admin slugs or leave them at the plugin's defaults of "login", "register", and "admin".
    3. Click "Save Changes".
  4. Don't forget your new URLs, especially the login URL! You might want to write them down somewhere until you get used to them. Or never need to remember the login URL if you use an auto-login tool like ManageWP (additional steps follow).

Screenshots of each step above are shown below:

Better WP Security 1

Initial Setup Page. Select the backup option you think best. (If you've already created a backup with ManageWP, you can skip this backup.)

Better WP Security 2

Setup step 2. Read the instructions and, in general, click to allow changing WordPress core files.

Better WP Security 3

Setup step 3. In general, click the option to allow the plugin to activate its default security settings, since this plugin does more than just change the login URL.

Better WP Security 4

After clicking the "Hide" tab at the top, check the box to enable the feature. Change the text boxes as you desire. Then click "Save". (Don't worry; you won't get logged out upon saving.)

Better WP Security 5
Was this answer helpful?

Related Articles

Why does Google say my site contains malware?

(WORK IN PROGRESS!)So you've gotten a few calls, emails, drop-in visits with some frantic current...

How do I move Wordpress from one location/domain to another?

Step 1:  Copy the entire contents of the old domain folder, which includes your entire WordPress...

Activating WordFence Extended Protection

WordFence Auto Sense Firewall (images to come!) An issue has been identified with a Wordpress...

How to Prevent Brute Force Attacks on Your Wordpress Install

Unlike hacks that focus on vulnerabilities in software, a Brute Force Attack aims at being the...

How to Allow Your IP Address Access to Wordpress - htaccess

If you would like to limit access to your Wordpress Login script to only specified IP Addresses,...