403 forbidden error in WordPress

Probably it happens for you when you go to your website pages or the content of your home page and you see 403 forbidden Error in WordPress. It contains a large phrase with the title forbidden in its content indicating that you do not have access to this page. This error is usually shown in the following form on all sites that you can see below.

403 forbidden error in WordPress

Well, as you can see in the screenshot if your site encounters this error, the following message will be displayed on your site. It will be created for the user due to the lack of access to the page on the web page.

403 forbidden error in WordPress

403 forbidden error in WordPress

The lack of access is that, as you know, in every type of server, just like the computer system, there is a series of access levels for individuals, each user can view or edit a file as much as they can. So, as long as you are not at the read-only access level, the content is not shown to you and you will encounter 403 forbidden error in WordPress. So, if you encounter 403 forbidden error in WordPress, go along with us to the end of this tutorial to find out how to fix 403 forbidden error in WordPress.

How to fix 403 forbidden error in WordPress

There are several different ways to fix 403 forbidden error in WordPress. We will continue to introduce each of the available ways based on the most frequent occurrences. This error can usually occur in the following situations.

  • Failure to access the wp-admin folder or the wp-login.php file
  • An error occurs when installing WordPress, which occurs more often when installing an easy packet in WordPress
  • See the error on a specific page of WordPress that may be due to the use of the plugin or code
  • No access to the domain

How to fix 403 forbidden error when installing plugin

One of the main reasons behind the occurrence of the 403 forbidden error in WordPress is after the installation of a plugin. It causes interruptions on some files on the site to cause the problem from the side of the plugin.

So if your site also immediately encountered the error after installing the plugin, all you have to do is to first deactivate the plugin. If the error is not resolved deactivate all WordPress plugins and then check them one by one. Check your site after activating each plugin to find the corrupted plugin.

How to fix 403 forbidden error with .htaccess

One of the other reasons that can cause 403 forbidden error in WordPress is from the .htaccess file or not having access to one of the WordPress files (permissions). This file acts as a key here. So, log in to your host to fix the error and click on the File Manager option to enter the File Manager page.

403 forbidden error in WordPress

Now that you’ve logged into the File Manager in host, go to Public_html and look for a file called .htaccess. This file, as its name implies, is a hidden file so it may not be visible to you when you first log into the file manager.

403 forbidden error in WordPress

So, click on the settings in CPanel and check the show hidden files. Now, download the file or name it to htaccess_old.

After deleting or renaming the file, go to the WordPress dashboard and go to Settings—> Permalinks, then, click on the save changes button to save the .htaccess file. Once again, your server will be built and your problem resolved.

Change permissions to fix the error

The third reason you are facing WordPress 403 is because of the no access to the WordPress files and folders. You must log in to your hosting and modify the access level for WordPress files and folders to resolve this problem. Set the file that does not have access. To do this, log in to your site and select your file, right-click on it. Then, click on the change permissions option, and click the corresponding checkbox according to the description for each file. Do it yourself.

403 forbidden error in WordPress

As you can see, in the permissions section, you will see three columns of numbers. You must change them for WordPress files and folders to change the numbers as follows.

The access level for all folders in WordPress is 744 or 755.
The access level is for all files in WordPress 640 or 644.

After reviewing and changing the access level for each WordPress file and folder, also go into the WordPress folders. Check the files in each folder and internal folders, and if the access has been changed, then modify them to fix the problem.

WordPress 403 Error due to the addition of the .htaccess file

Sometimes, for any reason, the .htaccess file is added to the home folder, which is located on the Cpanel in host. This file may have been added manually, or when it comes to transferring WordPress to another host by using the full backup method, you will face it. That’s why this file which is located in the home folder, will cause the 403 error.

The solution to this problem is to go to home and delete the .htaccess file which is inside the path from the host manager file.

403 forbidden error in WordPress

Those are some simple ways to fix 403 forbidden error in WordPress. We will be happy if you comment on it to inform us better ways.

403 forbidden error in WordPress
4.2 (84.29%) 14 vote[s]

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *