Are you facing the issue of 403 forbidden error on your WordPress site? If your answer is yes and you are searching for the solution of this error, then you are on the right page. Today in this article I am going to talk about what is 403 forbidden error and how to fix it on your WordPress blog. So, without wasting time let’s move to the article.
403 forbidden error occurs when your server doesn’t allow you see a specific page on your site. This error can be generated because your web server is not configured correctly. Because every folder and file contains permission that controls that this file is executable, readable or writable and if it is not correctly configured, you will face this error. Though this error is complicated but identifying and fixing them are a bit easy. So, let’s start with the reason that can cause this type of error.
What can cause this error?
Below I have mentioned some of the reason which can cause this 403 forbidden error.
- 403 forbidden error usually occurs when you create a new post or update an old
- This error can occur after installing a WordPress
- You can face this error if you migrate your website from a live server to a local server.
- Corrupted file of .htcaccess or incorrect file permission on your server.
These are some reasons that may be possible if you are facing this error.
Methods to fix this 403 Forbidden Error on your WordPress blog
Here are some of the possible fixes that you can perform for solving this 403 forbidden error. But before moving to the methods, I will suggest you take a full backup of your WordPress blog. So, just in case if we messed up the database while fixing this error, you can restore your website with that backup. So, now without wasting time, let’s move to the first fix-
Verifying plugin causing this error-
There are thousands of plugins available for WordPress. But not every plugin is compatible with your WordPress version. Sometimes mixing two unmatch plugin or a WordPress theme can cause this 403 forbidden errors in a WordPress blog. So, below are the methods that can help you in resolving this error if it occurs because of plugins-
- First of all, visit your dashboard and deactivate all of your installed plugins.
- Now activate each plugin one by one and check if you are still facing this error.
- Repeat the step again and again until you see this error. Once you identify that plugin that is causing this error, uninstall it, and that’s it.
If after disabling every plugin, you will still see this 403 forbidden error. It means that this error is not causing any plugin. In that case, you have to follow any other method mentioned below.
Fixing 403 Forbidden Error caused by corrupted .htcaccess
There are so many chances that you are facing this error because of a damaged .htcaccess file. In this case, you need to repair that file. So, here are the steps that you need to follow for fixing the .htcaccess file.
- So, first of all, login to your cPanel. If your host does not provide you cPanel, then you can use a third-party FTP client. But 000webhost provide cPanel. Today in this article, I am going to use FileZilla for fixing this error because it is a free to use tool.
- After entering in the file manager, find for .htcaccess file and download it on your PC.
- After downloading the file, delete .htcaccess from your server.
- Now try to access your website and check that is that 403 forbidden error still displaying.
If you are not facing that error again, just make a new .htcaccess file by visiting your dashboard and saving the permalinks.
Fix 403 Forbidden Error caused by File Permission in WordPress
Every file, which has been stored on your server have some permissions. These permissions control that what a user can access on your website. If any of your files don’t have correct file permission, it will cause 403 forbidden error, because your server thinks that you are not allowed to access that file.
If both of the methods mentioned above are not solving your error, then it is possible that you are facing it because of incorrect file permission. And changing file permission will solve it.
Now, for solving this error, you have two options. The first one is to open a ticket to your web host support and talk with them about your issue and ask them to solve this. They can scan your database and fix this error quickly, but not every host has responsible customer support. So, you can try the second option which is changing it on your own.
But, let me tell you one thing unequivocally that making changes in your database is not comfortable and suitable at all. You can mess up with everything, so I will suggest you ask any of your friend who has done it before or have good knowledge in this. Either you can hire a professional too.
So, if you want to do it your own, here are the steps that you need to follow for changing the permission of files in your database.
First of all, connect to your WordPress site using a file manager or an FTP client. Now go to the root folder where your files have been stored.
Now click on any folder and then right click on it to open the menu. Now click on File Permissions from the list.
Now it will open a dialog box, use the same setting and make sure that numeric value must be 744 or 755 for folders.
Also, make sure to tick the ‘Recurse into subdirectories’ and select apply to directories only and click on the OK button. It will take time to changing the permission on all of the subdirectories.
Once you are done with it, you have to repeat this process for all of the files. But this time you have to use file permission value to 644 or 640. Also, don’t forget to tick the ‘Recurse into subdirectories’ and ‘apply to files only.’ Option. Now click on OK, and that’s it. It will take some time in making changes in the permission.
After completing the process, check your website that is you still facing this issue or not.
So, here I end my article, hope this article has helped you in solving this 403 forbidden error. If you have any question related to any of method mentioned above or have any suggestion for updating this article, Kindly share them in the comment section below. Our team will assist you ASAP.