How to Change Default WordPress Login URL to Custom URL?

A minor yet crucial measure towards developing a safe WordPress website is altering the login page URL. You should think about using a custom WordPress login URL instead of the one that comes with your website.

Don’t worry if you don’t know how. With plugins like WPS Hide Login and User Registration, it’s really simple. With the help of these plugins, we’ll walk you through the process of changing your WordPress login URL step-by-step.

Are you unsure about the specifics of the default login URL or the need to modify it? Let’s begin with the brief explanation that follows.

What is the Default WordPress Login URL and Why Change It?

The usual structure for the admin login page in WordPress websites is known as the default WordPress login URL.

This implies that if you enter this address into the search box of your browser, you will be able to get the login URL for any WordPress website.

example.com/wp-admin or example.com/wp-login.php

Adding the wp-admin or wp-login pathway to the website’s main URL takes you to its WordPress login page.

Default Login URL

As you can see, using the default URL to reach any website’s login page just takes a few seconds.

This raises the question: Is using your website’s default login URL truly safe? When is it possible for any random individual to visit the site login page with such ease?

Fortunately, you can prevent this by using a custom login URL in place of the default one. All you have to do is make a new URL and use it in place of the existing one.

This means that only those who are aware of the new URL will be able to access the login page for your website and access the dashboard.

A first line of defense against hackers attempting to access your system is the modification of the default URL, even if you’ll still need to install other login security measures.

The second crucial factor is to totally revamp your users’ login process. You may give users a better login experience by creating a custom login page for your website as opposed to sticking with the standard WordPress login page. And all of this without requiring complex coding changes to the main login page.

For this reason, changing the default URL to a unique login page URL is a smart move. In the following part, we will examine how you may do that.

How to Change Default WordPress Login URL to Custom URL?

WordPress’s login screen Changing your URL is quite simple, especially if you have access to fantastic WordPress plugins.

User Registration is one such plugin that lets you change the default login page URL to a custom one.

Alternatively, you may use the WPS Hide Login plugin to completely conceal the default URL and replace it with a new one. A 404 error will be sent to anyone attempting to visit your login page with the default URL.

We’ll go over each of the two approaches in-depth so you can choose the one that works best for your website. Now let’s get started!

1. Create a Custom Login URL With the User Registration Plugin

We’ll first discuss creating a custom login URL with the User Registration plugin.

To provide a brief introduction, User Registration is one of the leading registration form builder plugins available in the WordPress marketplace.

User Registration

It’s built with a user-friendly interface, thus, enabling users to create and customize registration forms with ease. The drag and drop builder paired with the unlimited customization options for individual fields and forms provides an intuitive form-building experience.

Not to mention the in-built login form and my account page that comes with it. Most importantly, you get a handful of important features needed to keep your WordPress login page protected.

Intrigued? If so, let’s jump into the tutorial without any delay!

I. Install the Free User Registration Plugin

First and foremost, you must install the free version of the User Registration plugin on your website.

To do that, log into your WordPress website dashboard and navigate to Plugins >> Add New.

Add New Plugin

Here, search for User Registration in the search bar, and it’ll appear in the results. Simply click on the Install Now button, which initiates the installation process.

Search User Registration Plugin

Then, press the Activate button to activate the plugin.

Activate User Registration Plugin

Immediately after, you’ll be greeted by a welcome page. From here, you can Get Started with the plugin setup or directly jump to the form builder by clicking on the Create a First Form button.

Welcome and Setup

You can even skip these options with the Skip to Dashboard button. Doing this will take you to your website’s admin dashboard directly.

As you scroll down the welcome page, you can see all the extensions available in User Registration. And if you’re confused, you can directly contact User Registration’s Support as well.

Contact Support

For now, let’s look at the setup process. Simply press the Get Started button to start.

You’ll arrive at the Install Pages step first. The plugin automatically installs the in-built Default Registration Form on your website. Once you hit the Install & Proceed button, the Registration Page and My Account Page will be installed as well.

Install Pages and Proceed

The My Account page contains the shortcode for a beautiful user profile. In contrast, the Registration page displays the default registration form the plugin comes with.

New Sample Pages

Having them on your site means you won’t have to create brand new pages and just work with the pre-built user profile and registration form if you’re short on time.

Sample Pages Installed

After the installation is complete, click on Next to go to the General options.

General Setup Options

Here, the Anyone can register option is kept on by default. This ensures that the custom front-end registration forms you make with User Registration are visible to the users, enabling them to register themselves.

After that, you get to choose a User login option and Prevent dashboard access to specific user roles.

Then, press Next to move on to the Registration options. Follow the same steps again with RegistrationLogin, and My Account settings.

In the Final Step, you can choose to go to the dashboard, edit the default form, or create a new registration form from scratch.

Complete Setup

Naturally, you’ll need a registration form to register your users before they can log into their accounts.

Learn how to create a registration form easily with User Registration with this detailed guide. Once that’s done, you can move on to the next step.


II. Use the Sample My Account Page or Create a New Login Page

For this step, you have two options. You can either use the sample My Account page to change your site’s login URL or create a completely new login page.

The sample My Account page will display the in-built login form for logged-out users and the user profile for logged-in users.

If you view this page in the front-end, you’ll see that its URL is example.com/my-account. You can use this URL to replace the default login URL. So, you can jump to the next step if you’re going to go this route.

However, if you want to create a new login page, we’ll show you how to do that as well.

Begin by navigating to Pages >> Add New. You’ll be taken to a new page in the Gutenberg block editor, where you can edit the page to your liking.

Add New Page

Start by giving the page a title, let’s say, Sign Into Your Account. Then, click the + icon and add the User Registration block to the page.

Add User Registration Block

Now, the block displays two options: Registration and Login Form. Since we just need the login form now, choose Login Form.

Choose My Account Shortcode

Again, you’ll get two more options: My Account Shortcode and Login Shortcode. The first shortcode displays the login form for logged-out users. Once they log in, they’ll be redirected to their user profile.

While the latter one displays only the login form for logged-out users. You must set a redirection path to another page for users to end up on after successful login.

You can choose whichever option is suitable for your website. For now, let’s go with My Account Shortcode.

Publish New Login Page

Finally, hit the Publish button, and your new login page is ready. You can click Preview to check how the page appears in the front-end.


III. Replace the Default Login URL with Custom URL

Creating a login page is not enough; your website will still display the core login page with the default WordPress login URL.

To change that, go to User Registration >> Settings. Here, open the Login Options under the General tab.

General Login Options

The option you’re looking for is Prevent Core Login, which is checked off by default. Enabling this feature will replace the default login page URL with your custom Login URL.

Prevent Core Login WordPress Login Page URL Change

Just tick the checkbox, and you’ll be asked to choose the page to redirect the user instead of the core login page.

Redirect to Custom Login Page

Choose the custom login page with the new URL from the dropdown and click Save Changes. Easy as that!

Now, when your users type in the default login URL, they’ll be automatically redirected to the new login URL. Since the in-built User Registration form is only accessible from the frontend, the plugin lets you restrict any access to the backend.

On the other hand, you must replace the sample My Account page with the login page you just created. All you have to do is scroll down to the My Account Section in General Options. Choose the custom login page you created from the My account page dropdown and save the changes.

Change My Account Page

However, that’s not all you can do with User Registration. There are plenty of other options categorized into GeneralLabelsPlaceholders, and Messages sections.

General: This section lets you change the form template, choose the login option, enable ajax login, enable Google reCAPTCHA, enable lost password, and many more.

Labels: Here, you’ll be able to change the labels for Username or Email, Password, Remember me, Login, and Lost Your Password.

Placeholders: Likewise, you can change the placeholders for Username or Email Field and Password Field.

Messages:  You can also customize messages for Username Required, Empty Password, Invalid/Unknown Username, Unknown Email, Pending Approval, and Denied Account.

You have total flexibility over which settings you want to customize for your login form. While you’re doing so, remember to save the changes by clicking the Save Changes button at the bottom of the page.


IV. More Login Options in User Registration Pro

All we’ve discussed until now are only features you get in the free version of User Registration. There are more advanced login options offered by User Registration Pro, a premium version that operates as a standalone plugin.

You just need to buy a premium plan from User Registration and log into your WPEverest account. From the Downloads tab, download the User Registration Pro file.

Download User Registration Pro

Then, open Plugins >> Add New >> Upload Plugin on your WordPress dashboard, and install the Pro file you just downloaded. Don’t forget to activate the plugin as well.

Install User Registration Pro

Installing the Pro plugin on your site will add 4 new options for your login form in General >> Login Options under User Registration’s Settings.

User Registration Pro Login Options

Let’s look at each of them briefly below:

Enable Login Icon Field: You can enable the login icon field for the in-built login form with this option.

Prevent Active Login: This option lets you prevent concurrent login from an individual user on multiple devices. We recommend you do this for your login page’s security.

Maximum Active Login: Once you enable the previous option, you need to set the maximum active login number. So, if you set it to 5, the user won’t be able to log into your website from more than 5 devices.

Enable Redirect Back to Previous Page: By enabling this option, you’ll be redirecting the user to the page they were on before they filled and submitted the login form.

Additionally, you get Role Based Redirection in the Extras tab of User Registration Settings. You just have to Enable Role based redirection and configure settings for Redirection After Login.

Role-based Redirection After Login

This gives you the flexibility to decide which user role gets access to which page, which in turn secures your website even more.

As you can see, you can do so much more with the premium version of User Registration. However, it’s up to you to decide whether the free version suffices your website or you need to upgrade to the premium version.

Either way, you’ll be able to change the default WordPress login URL to a custom URL easily.

With that said, let’s move on to the next method of changing the default login URL.


2. Hide the Default Login URL With Custom URL

If you’d rather just hide the default login URL, that’s also possible. There are several WordPress security plugins like WPS Hide Login to help you achieve that. All you have to do is install the plugin and hide the login URL with a new one.

So, let’s learn how to implement this method of login page protection on your site with the WPS Hide Login plugin. We’ll also talk about two other similar plugins you can use as an alternative to WPS Hide Login.

A. Hide Default Login URL with WPS Hide Login

WPS Hide Login

WPS Hide Login is a lightweight and easy-to-use plugin, so hiding the default login URL is easy and quick. Just follow the steps detailed below, and you should be able to hide the default login URL without a hitch.

First, install the WPS Hide Login plugin on your WordPress site. The steps are the same as for User Registration installation.

Search for the plugin from Plugins >> Add New, then install and activate it once you find it in the search results.

Install WPS Hide Login

When the plugin is activated, it automatically adds a WPS Hide Login section in Settings >> General of your dashboard.

WPS Hide Login Settings

It has two options, namely, Login url and Redirection url.

In the Login url, enter the new login URL that you want to use to hide the default login URL.

Meanwhile, the Redirection url already points to a 404 error page. So, you don’t need to edit this option unless you want to redirect to another page.

Finally, click Save Changes to apply the changes you made to your website’s login URL. Now, only users who know the new login URL find the login page and access your site.

If they enter the old URL, i.e., example.com/wp-admin, your site will display a 404 error or another page based on the WPS Hide Login settings.


B. Similar Plugins You Can Use

WPS Hide Login is just one of the many options available when it comes to hiding the login URL.

Here are two more alternatives you can try if the previous plugin isn’t exactly what you’re looking for.

All in One WP Security and Firewall
All in One WP Security & Firewall

All in One WP Security and Firewall is a complete solution to any security concerns you have on your website. So, you’ll be able to hide the WordPress admin login page with a new login URL easily. At the same time, you can enforce its many login security features to protect user login from bots and hackers.

For example, you can defend your site against Brute Force Login Attacks by locking out specific IP addresses after too many login attempts. Likewise, with this plugin, you can add Google reCaptcha protection, force logout of all users, monitor all user accounts, and more.

Hence, try All in One WP Security and Firewall if you need a plugin that’ll cover login and registration security, firewall security, database security, etc.  Best of all, you get all these features completely free!

Key Features:

  • Prevent spam comments
  • Block fake Google bots from crawling your site
  • Provides login honeypot feature
  • Blacklist users through their IP addresses
  • Schedule automatic database backups

Price: Free


iThemes Security
iThemes Security

iThemes Security is another WordPress plugin with plenty of security features sufficient to protect websites of any scale and niche.

With this plugin, you can enable Two-factor Authentication (2FA) and set password requirements. Moreover, you get Local Brute Force Protection as well as Network Brute Force Protection against repeat offenders.

Most importantly, it allows you to hide the admin login URL from people with ill-intent. However, this is an advanced feature available only in iThemes Security Pro. Thus, you’ll have to upgrade to a premium plan to use the hide login URL feature.

Key Features:

  • Limit admin privileges to trusted devices only
  • Allow passwordless logins
  • Make Secure Sockets Layer (SSL) connections compulsory
  • Logs file changes
  • Daily scans and patch fix

Price: Free or starts at $52/year

Wrapping Up

WordPress’s login screen Changing your URL is quite simple, especially if you have access to fantastic WordPress plugins.

User Registration is one such plugin that lets you change the default login page URL to a custom one.

Alternatively, you may use the WPS Hide Login plugin to completely conceal the default URL and replace it with a new one. A 404 error will be sent to anyone attempting to visit your login page with the default URL.

We’ll go over each of the two approaches in-depth so you can choose the one that works best for your website. Now let’s get started!

Alternatively, you may utilize User Registration to construct a personalized login page and substitute it for the built-in login URL. Aside from that, User Registration Pro offers more sophisticated login choices. With its paid Style Customizer add-on, you can even customize the look of your login forms.

Not to mention the capability to utilize invitation codes to register users, add more fields to WooCommerce registration forms, and so on.

Posted in Hosting Article.