Renaming the WP-Admin Area – Loginizer (2024)

This guide will help you rename the WP-Admin URL of your WordPress blog.
There are many programmed bots and attacking software which assume the wp-admin URL to behttp://yoursite.com/blog/wp-admin.
With Loginizer Security Pro its now possible to rename wp-admin to something different e.g. site-admin
You can rename the WP-Admin URL to anything of your choice.

Note: This feature is supported only with Apache and LiteSpeed at the moment.

Adding entry in .htaccess

The following block of code needs to be added in your .htaccess file as per your blog type.
If your blog is a WordPress Multi Site blog, please follow the multisite .htaccess guide.
NOTE: For this guide we will assume that the new admin slug you want to set for wp-admin issite-admin
NOTE: If your installation is in a sub-directory then you will need to add /sub-directory in the RewriteBase line in .htaccess.

WordPress Blog (not multisite)

Add the following block of code at the beginning of the .htaccess file :

# BEGIN Loginizer<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^site-admin(/?)(.*) wp-admin/$2 [L]</IfModule># END Loginizer

WordPress Multisite Blog

Add the following block of code at the beginning of the .htaccess file :

# BEGIN Loginizer<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^([_0-9a-zA-Z-]+/)?(site-admin)(/?)(.*) $1wp-admin$4 [L]</IfModule># END Loginizer

Renaming the WP-Admin Area

To rename the WP-Admin Area, please go to WordPress Admin Panel -> Loginizer Security -> Security Settings.
There you will find theRename WP-Admin AccessSetting section.
Enter a new wp-adminslugin this section.

Note: You must have .htaccess setup by now.

The following is a screenshot of the settings page

Renaming the WP-Admin Area – Loginizer (1)

You must now access the new admin slug from the URL to see if your wp-admin area is working with the new URL.

Disable wp-admin access

Once you have setup and tested the new wp-admin area (site-admin in our example) you can consider to disable wp-admin access.
The advantage is that, attacking bots will not know the new URL.
To do so, enable theDisable wp-admin accesssetting as well.
Once enabled wp-admin will no longer work with the old slug. It will work only with the new slug (site-admin in our example)

Renaming the WP-Admin Area – Loginizer (2024)
Top Articles
Latest Posts
Article information

Author: Horacio Brakus JD

Last Updated:

Views: 5756

Rating: 4 / 5 (71 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Horacio Brakus JD

Birthday: 1999-08-21

Address: Apt. 524 43384 Minnie Prairie, South Edda, MA 62804

Phone: +5931039998219

Job: Sales Strategist

Hobby: Sculling, Kitesurfing, Orienteering, Painting, Computer programming, Creative writing, Scuba diving

Introduction: My name is Horacio Brakus JD, I am a lively, splendid, jolly, vivacious, vast, cheerful, agreeable person who loves writing and wants to share my knowledge and understanding with you.