---
title: "Rename wp-content Folder & Hide wp-admin Login Path"
url: https://coolplugins.net/rename-wp-content-folder-hide-wp-admin-login-path/
date: 2021-09-01
modified: 2026-05-29
author: "Satinder Singh"
description: "Renaming the wp-content folder and hiding the WordPress admin login URL can improve website security by making it harder for attackers to identify your WordPress setup. To rename the wp-content folder, you need to update the folder name through FTP and add custom path definitions inside the wp-config.php file. After renaming the folder, some plugins or themes may temporarily stop working, and you may need to reactivate them manually. You can also hide the default wp-admin login path using the WPS Hide Login plugin, allowing you to create a custom login URL for additional security."
categories:
  - "WordPress Tips"
image: https://coolplugins.net/wp-content/uploads/2025/04/hide-wp-admin-rename-wp-content-fimg-800x450.png
word_count: 394
---

# Rename wp-content Folder & Hide wp-admin Login Path

[Wordpress ](https://wordpress.org/)is the world’s biggest content management system, it is home to more than 75 million websites. All the themes uploaded, images, plugins are stored in the wp-content folder, the images’ URL contains wp-content which makes it easier for anyone to know you are using WordPress. WordPress is vulnerable when it comes to attacks, so changing the name or hiding the admin login path gives you some security against these cyber attacks.

Renaming the wp-content folder is an easy task, you just need to add a few lines of codes. But before that you must consider the following:

- Renaming the wp-content folder may lead to a few minutes of downtime.

- All the themes will be deactivated and you need to activate them manually.

- Some plugins may not work as properly as they were working before.

#### Rename wp-content Folder :

##### Step1: Login to FTP client

- Login to your website using any FTP client, go to the root directory, and rename the wp-content folder.

- You can rename it to anything, make sure not to use spaces or characters.

##### Step 2: Telling WordPress you have changed name

- After changing the name you have to tell wordpress, the new name of the wp-content folder.

- Open wp-config file in the root directory, and above ***require_once(ABSPATH . 'wp-settings.php'); *** this line, paste:

PHPdefine ('WP_CONTENT_FOLDERNAME', 'Folder_Name');
```
define ('WP_CONTENT_FOLDERNAME', 'Folder_Name');
```

##### Step 3:  Define new directory path

- After this, you have to define a new directory path and URL.

- To do that above* require_once(ABSPATH . 'wp-settings.php')* this line of code, add:

PHP//Define new directory path

define ('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME);

//Define new directory URL

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');

define('WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME);
```
//Define new directory path

define ('WP_CONTENT_DIR', ABSPATH . WP_CONTENT_FOLDERNAME);

//Define new directory URL

define('WP_SITEURL', 'http://' . $_SERVER['HTTP_HOST'] . '/');

define('WP_CONTENT_URL', WP_SITEURL . WP_CONTENT_FOLDERNAME);
```

Save this file and upload it again to the server.

After these 3 simple steps the WordPress wp-content folder name is now changed, plugins may be deactivated and you have to activate them manually.

#### Hide wp-admin login path:

You can easily hide the wp-admin login path.

- **Step 1:** Log in to your WordPress site using the admin panel

- **Step 2: **Go to **Dashboard >> Plugins >> Add new**, search for WPS hide login.

![Rename wp-content Folder](https://coolplugins.net/wp-content/uploads/2021/08/image2-7.png)

**Step 3 :** Install and activate the plugin.

![Rename wp-content Folder image 2](https://coolplugins.net/wp-content/uploads/2021/08/image3-3.png)

**Step 4:** Go to **settings >> WPS hide**, and here you can change or update the login URL.

![Rename wp-content Folder image 4](https://coolplugins.net/wp-content/uploads/2021/08/image1-6.png)