Have you recently encountered a 403 forbidden error in WordPress? People usually panic when they find a prohibited 403 error in their WordPress websites. This can become a source of confusion. I will therefore explain to individuals how to quickly fix a 403 Prohibited WordPress error on their WordPress websites.
But before moving forward, let’s see what a 403 forbidden error is. This is a status code generated as a result of incorrect configuration of the Web server. This incorrect configuration may result in denial of access to the requested resource by the client.
The error can be a little tricky to solve because your browser is not able to load scripts, your server does not allow it. However, if you are using a WordPress website, here’s how to fix the WordPress error problem.
To fix WordPress 403 forbidden error, follow the steps carefully.
Create a Backup
Most of the time, you are not responsible for errors occurring on your WordPress website hosting server. As you can end up making mistakes like a human, the server can end up making mistakes because they are handled only by humans. Some of these errors are serious and may compromise your website. Saving website data on your server is therefore essential.
If your hosting provider does not provide the right options for backup, you can try the following WordPress backup plugins.
Check .htaccess File
One of the reasons a WordPress Prohibited 403 error is detected is the corrupted .htaccess file. You can repair a corrupted .htaccess file in seconds with any FTP manager.
Start by connecting to your server via FTP, download the .htaccess file located in the same location where there are folders such as / wp-content / wp-admin / wp-includes /.
After that, you need to download the .htaccess file to your computer for your security. Then delete the .htaccess file from your server.
Now, refresh your website and check if the WordPress 403 error is resolved or not, otherwise it confirms that your .htaccess file is corrupt. If the error prohibited by WordPress 403 persists, you must proceed to the next step.
Log in to your WordPress admin dashboard to generate a new .htaccess file. Navigate to the Configuration → Permalinks page. Then click the Save Changes button at the bottom of the page. It will generate a new .htaccess file.
3. Check File Permissions
Many files in WordPress require access permissions. However, when there are incorrect permissions, the server will display a prohibited 403 error.This shows that you do not have the file you requested.
- You must connect your WordPress website by using an FTP.
- Navigate to the root folder.
- Now, click on the right click option and discover the file permissions option.
- You can see the file authorization dialog. It will look like this.
- Make sure that the numeric value in the Permission area of your WordPress Web site is set to 744 or 755.
- You can quickly set the permission by yourself. Check the “Recurse in subdirectories” box, then check the “Apply only to directories” box.
- With this process, you must repeat the same process for all files. You will now set the file permission to 644 or 640 and remember to select the “Recurse in subdirectories” and “Apply to directories only” options.
Now, check your website again if 403 prohibited WordPress error still persists. If the problem persists, you must complete the next step.
4. Deactivate All Plugins
Log in to your WordPress Admin Dashboard and navigate to Plugins → Installed Plugins. Disable the plug-ins one by one, then refresh your website after deactivation. If the website starts working properly, then the error is obviously in the plugin. Now you have to activate each plugin one by one and consult your website after each activation. The problematic plugin will soon be identified.