How to change your admin URL in WordPress (2024)

The administration area of WordPress projects is by default accessible via my-domain.com/wp-admin, which is of course known to cybercriminals. They therefore use the WordPress ‘wp-admin’ URL all too readily as a point of attack. To protect yourself from this and other attack patterns, you can rename or disguise the default path to your WordPress admin login. We’ll show you how to do that.

Contents

  1. This is why you should change the WP admin login
  2. WordPress: Change WP admin login with the plugin Rename wp-login.php
    1. Step 1: Install the plugin via the WordPress backend
    2. Step 2: Change WP admin URL in WordPress
    3. Step 3: Access WP admin login under new address
  3. Changing WP admin URL is not possible: Solution .htaccess file

Managed WordPress Hosting with IONOS!

Start your website quickly and benefit from the most secure and up-to-date version of WordPress, including a free domain for one year!

This is why you should change the WP admin login

The fact that the WP login page is accessible by default via the sample URL my-domain.com/wp-admin does not in principle mean that your WordPress project is highly compromised. If you have changed the admin credentials, the WP admin login is also only possible for you.

The big problem with the default URL is that it attracts cybercriminals in the first place: Whether WordPress is the basis of your website can be determined in seconds - and the check to see if you’re still using the common default URL for your project happens just as quickly. With a brute force attack or other measures, the attack on your login could start directly afterwards.

An individual WordPress admin login is therefore recommended - and quickly and easily implemented with appropriate WordPress plugins.

WordPress: Change WP admin login with the plugin Rename wp-login.php

The lightweight and free plugin Rename wp-login.php by Ella van Durpe is a bit older but serves its purpose flawlessly even with current WordPress installations. We have tested the WordPress extension with version 5.8.1. How exactly the WP login page customisation works, you can read below.

Step 1: Install the plugin via the WordPress backend

The first step is to install the security plugin via the backend of your WordPress project. To do this, log in and click on ‘Plugins’ and ‘Install’ in the left side menu one by one. Use the search function to search for ‘Rename wp-login.php’ and click ‘Install Now’ once the plugin appears.

Step 2: Change WP admin URL in WordPress

Once you activate the plugin following the installation via the button of the same name, you can access it in the side menu. To do so, press ‘Settings’ and then ‘Permalinks’.

Scroll down to the ‘rename wp-login.php’ section and assign a new, secure name for the login URL, such as c2xlp-3.

Tip

Don’t use typical names like ‘login’, ‘credentials’, ‘admin’, or ‘backend’ for the WordPress admin login URL. These are also known to criminals and therefore offer little protection.

Step 3: Access WP admin login under new address

Click on ‘Apply changes’ to confirm your new login URL. In the future, you will reach your WordPress admin at the new URL - in our case, with the URL segment c2xlp-3 you just defined.

Changing WP admin URL is not possible: Solution .htaccess file

If the WordPress admin login cannot be changed, it is often because your WordPress installation does not allow the definition of speaking URLs. In this case, before you customise your URL with the plugin, you need to manually add the following mod_rewrite rules to your .htaccess file:

<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule>
  • Blogs
  • Wordpress
  • Security

Related articles

How to change your admin URL in WordPress (5)

How to protect WordPress login with .htaccess

Learn how to effectively protect the administration area of your WordPress blog from hackers and brute force attacks with .htaccess directory protection.

How to protect WordPress login with .htaccess

How to change your admin URL in WordPress (6)

Reset WordPress Admin Password

Having trouble logging in to the admin area of your website and the password recovery via email option does not work? We'll show you how to change your WordPress admin password with phpMyAdmin in this article.

Reset WordPress Admin Password

How to change your admin URL in WordPress (7)

How to log in to WordPress: WordPress admin login

WordPress is a flexible content management system that can be extended and configured in many ways. However, it can be confusing when features differ between different WordPress installations. Our article shows what pitfalls there are with WordPress login, and explain how to simplify WordPress login as a user or admin.

How to log in to WordPress: WordPress admin login
How to change your admin URL in WordPress (2024)
Top Articles
Latest Posts
Article information

Author: Rev. Porsche Oberbrunner

Last Updated:

Views: 5974

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Rev. Porsche Oberbrunner

Birthday: 1994-06-25

Address: Suite 153 582 Lubowitz Walks, Port Alfredoborough, IN 72879-2838

Phone: +128413562823324

Job: IT Strategist

Hobby: Video gaming, Basketball, Web surfing, Book restoration, Jogging, Shooting, Fishing

Introduction: My name is Rev. Porsche Oberbrunner, I am a zany, graceful, talented, witty, determined, shiny, enchanting person who loves writing and wants to share my knowledge and understanding with you.