Are you facing 403 forbidden error on your WordPress? Don’t worry it is the most common error of WordPress which is faced by many other WordPress beginners. In this post, I am going to show how to deal with the 403 forbidden error on your WordPress website and easily fix it.
WordPress shows codes and messages when an error occurs on your website. Like other common WordPress error, 403 forbidden errors is an HTTP status code that means the webserver understands the request made by the client ie your browser but the webserver cannot fulfill it.
In other words, web sever knows exactly what do you want or what you are asking for but due to some reason web server won’t let you do it.
Before we try to fix the 403 forbidden error we must know what can cause this error. So, 403 Forbidden error can be caused by:
Before we do anything, I recommend you to create a backup of WordPress website.
Let’s get started.
First we will deactivate all WordPress plugins temporarily. Sometimes some security plugins installed on your WordPress website can cause this 403 forbidden error.
Follow the given instruction to deactivate plugins:
After renaming the plugins in your WordPress website will automatically get deactivated and then save back to its original name.
After deactivating all WordPress plugins if it resolves 403 error then it means one of the WordPress plugin installed is causing this error so to find which plugin activates one by one all plugins.
Follow this guide: How to Install/Remove the Plugin in WordPress?
A corrupt .htaccess file can also cause 403 forbidden errors on your WordPress website. So we need to repair it and repairing the .htaccess file is so easy.
First, we have to delete old .htaccess file from root directory.
Before we delete the .htaccess files, we need to have a backup of the .htaccess file. So, download a copy of it on your computer then try to delete it.
Follow the given instruction to repair .htaccess file:
Try accessing your website. If the 403 forbidden error is resolved, then, this means that your .htaccess file was corrupt. You can generate a fresh .htaccess file by logging into your WordPress admin area and going to Settings » Permalinks page.
Simply click on the Save Changes button at the bottom of the page and WordPress will generate a fresh .htaccess file.
Files stored in your WordPress directory have file permissions. These permissions control who can access files and folders on your WordPress website.
403 forbidden error can also be caused by incorrect file permissions. Your web server will think that you do not have permission to access those files. So, if above two solution doesn’t work or solve this 403 forbidden error issue, then try to check all file permissions once.
Or, you can ask your WordPress hosting provider, they can reset the file permissions to default.
And, if all above solution doesn’t work then you can ask your WordPress hosting provider to check if it is causing at their end. Sometimes, the webserver finds some issue in your WordPress files like some malicious code or files then the webserver denied all users to access the wp-admin area only and show 403 forbidden error to protect your WordPress website from hackers.