WordPress

Solution: 403 Forbidden error? Try these Steps | WordPress Errors

How to Fix 403 Forbidden error in WordPress?

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.

What is a 403 Forbidden – Access Denied Error in WordPress?

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. 

How to Fix 403 Forbidden error in WordPress?

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:

  1. Due to WordPress Plugins.
  2. Due to corrupt .htaccess file.
  3. Incorrect File permissions.

Before we do anything, I recommend you to create a backup of WordPress website

Let’s get started.

403 forbidden error caused by WordPress Plugin.

First we will deactivate all WordPress plugins temporarily. Sometimes some security plugins installed on your WordPress website can cause this 403 forbidden error. 

If you can’t reach the WordPress plugin area then you need to login into your WordPress hosting and there you can deactivate plugins. 

Follow the given instruction to deactivate plugins:

  1. Login in your WordPress hosting using credentials.
  2. Go to File Manager and then public html.
  3. Now you can find all your WordPress files there. Now, navigate to wp-content folder.
  4. You can see plugins folder. Now you have to rename it and save. 

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?

403 forbidden error caused by htaccess file.

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. 

we have to delete old .htaccess file from root directory. | 403 forbidden error| WordPress Error

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:

  1. Login into your Cpanel account and then go to File Manager.
  2. Now, Go to your website WordPress files.
  3. Find .htaccess file and then delete it.

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.

click on the Save Changes button at the bottom of the page and WordPress will generate a fresh .htaccess file. | 403 forbidden error| WordPress Error

Simply click on the Save Changes button at the bottom of the page and WordPress will generate a fresh .htaccess file.

Fix 403 Forbidden Error Caused by File Permissions in WordPress

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.

try to check all file permissions once |403 forbidden error| WordPress Error

Or, you can ask your WordPress hosting provider, they can reset the file permissions to default. 

reset the file permissions to default.| 403 forbidden error| WordPress Error

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.

Reference: How to Fix the 403 Forbidden Error in WordPress?

Be the First to comment.

Leave a Comment

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.