How to Change WP Admin URL in WordPress

WordPress Support >> How to Change WP Admin URL in WordPress

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?

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.

How to Change WP Admin URL in WordPress

 

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

How to Change WP Admin URL in WordPress

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.

  1. Make a full backup of your site and database.
  2. Open your theme’s functions.php file or create a custom plugin.
  3. Add code to block access to /wp-login.php and redirect to your new URL.
  4. Set up a custom rewrite rule in your .htaccess or 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!