Changing the default WordPress admin URL can help improve your site’s security. This guide explains how to do it in a clear and simple way.
Table of Contents
- Why Change the WP Admin URL?
- Method 1: Using a Plugin
- Method 2: Manual Change (Advanced)
- Important Notes
- Final Checks
Why Change the WP Admin URL?
By default, WordPress uses /wp-admin and /wp-login.php as login URLs. Hackers often target these paths when trying to access a site. Changing the admin URL can reduce the risk of unauthorised access.
Method 1: Using a Plugin
This is the easiest and safest way to change your admin URL.
Step 1: Go to your WordPress dashboard.
Step 2: Navigate to Plugins > Add New.

Step 3: Search for a plugin like WPS Hide Login.

Step 4: Install and activate the plugin.
Step 5: Go to Settings > General and scroll down to find the login URL settings.
Step 6: Enter your new admin URL (e.g. /my-login) and save changes.
Method 2: Manual Change (Advanced)
If you prefer not to use a plugin, you can edit your WordPress core files. Warning: This is not recommended unless you’re confident with PHP and server settings.
- Make a full backup of your site and database.
- Open your theme’s
functions.phpfile or create a custom plugin. - Add code to block access to
/wp-login.phpand redirect to your new URL. - Set up a custom rewrite rule in your
.htaccessor Nginx config.
This method can break your site if not done correctly. Use with caution.
Important Notes
- Write down or bookmark your new admin URL. You’ll need it to log in.
- Do not delete the plugin (if using one), or the new login URL will stop working.
- Make sure your site still works and login is successful after the change.
Final Checks
After changing the admin URL:
- Test the new URL in a private browser window.
- Make sure your login and dashboard load properly.
- Update any bookmarks or saved login pages you use.
That’s it — your WordPress admin URL is now changed, and
Need help managing your WordPress site? Get expert WordPress support today!