How to remove folders in WordPress helps secure the website



How to delete a folder in WordPress - We chose WordPress because it is the world's leading CMS platform.


But many experienced users and developers will say that the WordPress installation, while great, still needs some customization to tighten things up when it comes to security and other default features.


If you are looking for ways to increase security, then the area that you should consider is by blocking people who are unable to browse your directory files.


Why delete directory browsing is a good idea


Stop and consider this:


Let's say you have a metal cabinet created to keep your personal and private files you want to keep in a safe place.


Now imagine that you found someone passing through that file without your permission. Wouldn't you be uncomfortable and wary of that person's intent?


And we guess you'll start locking that closet from that point.


This somewhat illustrates the importance from the directory file on your WordPress website.


They are quite important. But your website directories are likely to be displayed to anyone in the world if they know where to look and they are easy to find.


You will easily discover any directory files from any website provided by WordPress just by typing / wp-includes / at the end of your base URL.


If you do this on your own website and you find an image similar to the one below, then the directory file from you is accessible to anyone and anyone who wants to see it.


how-to-delete-in-wordpress



That's a bit worrisome when you think this file contains sensitive information and helps hackers to prevail. Therefore, keeping a WordPress backup from the website is also important to prevent and restore files if something goes wrong.


Want to prevent that from happening? Then there is a simple fix to put the file on your side safe.


Delete the directory on your WordPress website


how-to-delete-in-wordpress



The good news is that fixing this error requires a simple line of code. The bad news is that it takes some small technological skills to put that code in the right place.


This is the code you will use:


Now, you will want to access the .htaccess file of the website. You are likely to do this in the following way:


  • Use an FTP client like FileZilla

  • Through your File Manager in cPanel server

For this WordPress tutorial, we plan to explain how to do this through cPanel on your side.


See more: How to choose the best Hosting for WordPress


How to delete folders in WordPress with cPanel


To get started, you'll want to log into your web hosting account and access cPanel.


how-to-delete-in-wordpress



Next, go down to the File section and click File Manager. When you click on it, a popup box asks for the file you want to view (the file in the given URL).


Select the Web Root folder option, select your domain name, and then make sure the box with the content Show hidden files is selected.


You will then be taken to another screen that lists all the files in that certain domain. Scroll through the file that appears and find the .htaccess file.


Before you open the file, download and keep it in a safe place. Next, click on the file and then go to the top of the screen that says View so you can view the file.


There you will find several lines of code including:


# BEGIN WordPress



RewriteEngine On


RewriteBase /


RewriteRule ^ index.php $ - (L)


RewriteCond% {REQUEST_FILENAME}! -F


RewriteCond% {REQUEST_FILENAME}! -D


RewriteRule. /index.php (L)



# END WordPress


Now get this code:


Options All -Indexes


And put it at the end of that code so it looks like this:


# BEGIN WordPress



RewriteEngine On


RewriteBase /


RewriteRule ^ index.php $ - (L)


RewriteCond% {REQUEST_FILENAME}! -F


RewriteCond% {REQUEST_FILENAME}! -D


RewriteRule. /index.php (L)



# END WordPress


Options All -Indexes


Save changes by your side and you don't lock your folders from prying eyes. You can check this by visiting the website and adding / wp-includes / to your URL again.


If you did this correctly, you will receive a 404 Error or a License Error, which means your efforts have been successful!


For added security, you also have the ability to customize your WordPress login URL so that hackers don't have an easy way out to find access to your WordPress Dashboard.


The bottom line is


Although this is not what some people call the necessary step, this is probably the step you should take. Your files are very important and should be kept confidential.


It will take a few minutes to do this, but it is best to take precautions and keep everything safe.


0 Comments

seo marketing wordpress seo seo hosting seo and marketing word press seo wordpress and seo wordpress marketing hosting seo seo press pro market seo seo & marketing seo e marketing e marketing seo seo pro wordpress marketing & seo seo di wordpress wordpress seo host hosting and seo wordpress hosting seo wordpress seo wordpress wordpress for marketing seo press wordpress marketing for seo
×