---
title: "How to change WordPress Admin Login URL Path?"
url: https://nexterwp.com/docs/change-wordpress-admin-login-url-path/
date: 2023-02-23
modified: 2026-05-26
author: "Aditya Sharma"
description: "The default WordPress admin URL is wp-admin, shared across every WordPress site, which makes it a target for brute force attacks. Changing your login URL path is one of the..."
image: https://nexterwp.com/wp-content/uploads/2024/05/change-wordpress-admin-login-url-path-1024x519.jpg
word_count: 530
---

# How to change WordPress Admin Login URL Path?

The default WordPress admin URL is *wp-admin*, shared across every WordPress site, which makes it a target for brute force attacks. Changing your login URL path is one of the most effective steps you can take to secure your WordPress dashboard.

It is straightforward to change the WordPress admin URL to something more secure with the [Nexter Extension plugin](https://wordpress.org/plugins/nexter-extension/).

**Best Used For:**

- Replacing the default *wp-admin* login path with a unique, hard-to-guess URL

- Protecting your login page from automated brute force and credential-stuffing attacks

- Controlling what happens when someone tries to access the old login URL

[LIVE EXTENSION LINK](https://nexterwp.com/nexter-extensions/change-wp-admin-login-url-for-wordpress/)

 

## Learn via Video Tutorial

https://www.youtube.com/watch?v=grnz9OKH-tc

To replace your WordPress admin URL, follow the steps.

Go to **Nexter** > **Extensions** > **Security**

Then go to the **Custom Login URL** section, enable the toggle, and click the gear icon (⚙).

![](https://nexterwp.com/wp-content/uploads/2023/02/custom-login-url-settings-new-1.png)

A popup will appear. In the **Change WP Admin Login Path** field, add your custom login URL.

![change login url path](https://nexterwp.com/wp-content/uploads/2023/02/change-login-url-path-new.png)

For instance, you can add something like “**secure-login**” and if you click the **Save** button, your WordPress admin URL will change from ***https://yoursite.com/wp-admin*** to ***https://yoursite.com/secure-login***.

Do not click Save yet.

From the **Login URL Behaviour** dropdown, choose the behavior if someone tries to access your old login URL.

The dropdown has three options:

![custom login url behaviour](https://nexterwp.com/wp-content/uploads/2023/02/custom-login-url-behaviour-new.png)

- **Message (default)** - With this option, you can add a custom message that will appear when a user tries to access your old admin URL.

- **Home Page** - With this option, you can redirect the user to the home page of your website.

- **404 Page Template** - You can redirect the user to a 404 error page with this option.

Once you choose the appropriate option, click the **Save** button and your WordPress wp-admin URL has been changed.

From now on, use the new login URL to log in to your WordPress dashboard.

For additional login security, see [How to Limit Failed Login Attempts in WordPress](https://nexterwp.com/docs/limit-login-attempts-in-wordpress/) to block repeated failed login attempts.

## Redirecting WP Admin URL to Home Page

If you want to redirect visitors to the home page when they try to access your old WordPress login URL, you can do that with Nexter Extension.

To do this, in the **Custom Login URL** popup after you have set your custom login URL in the **Change WP Admin Login Path** field, choose the **Home Page** option from the **Login URL Behaviour** dropdown.

Then click the **Save** button.

This will redirect anyone who tries to reach your WordPress site through the default *wp-admin* path to the home page instead.

![custom login home](https://nexterwp.com/wp-content/uploads/2023/02/custom-login-home-new.png)

## Redirect WP Admin URL to 404 Page

If you want to send unwanted visitors to a 404 error page, Nexter Extension has this option.

To do this, in the **Custom Login URL** popup after you have set your custom login URL in the **Change WP Admin Login Path** field, choose the **404 Page Template** option from the **Login URL Behaviour** dropdown.

Then click the **Save** button.

Now if you try to access the default *wp-admin* path instead of the new login path, it will redirect you to a 404 Page Not Found error page.

![custom login 404](https://nexterwp.com/wp-content/uploads/2023/02/custom-login-404-new.png)

To customize the appearance of that 404 page, see [How to Create a 404 Page Template in WordPress for Free](https://nexterwp.com/docs/create-404-page-template-in-wordpress/).