How to resolve the 403 Forbidden errors in WordPress?

In WordPress, many times facing issue of 403 errors. It may be after installation of WordPress, theme or plugins. 403 Forbidden error code is shown when your server permissions don’t allow accessing a specific page or URL.

Many different type of scenarios for showing 403 errors on the screen.

403 Forbidden – Access denied on wp-admin or WordPress login page.

403 Forbidden – Error showing while installing a WordPress.

403 Forbidden – Error showing while visit any page or post.

It is also possible that you only get to see ‘Access Denied’ instead of full 403 Forbidden statuses.

Most common caused to getting 403 errors, due to bad configuration security plugins. Many WordPress security plugins can block an IP address if they addressing them to be malicious.

Need to check for below points for removing 403 errors:

  • WordPress Plugin
  • Corrupt .htaccess File
  • File Permissions in WordPress

WordPress Plugin

First, you should have to deactivate all the plugins from the admin panel. If your issue is resolve, it means any one plugin generating an issue. Now active one by one plugin and check your website.

First thing you need to do is to temporarily deactivate all WordPress plugins. This includes any security plugins that you may have installed on your site.

If this resolves your problem, then this means one of the plugins on your website was causing this error.

You can figure out which plugin was causing the error by activating all your plugins one at a time until you are able to reproduce the 403 forbidden errors.

Corrupt .htaccess File

Many times 403 errors is caused by corrupt .htaccess file. You have to repair or again upload .htaccess file on your server. For uploading .htaccess file connect your server via FTP or cPanel and open file manager. Now first rename your existing .htaccess file (Take a backup for not losing any custom rules from .htaccess file)   after that you need to download the .htaccess from fresh WordPress and upload on root folder.

Now, try to access you website, if 403 forbidden errors is resolve then it means .htaccess file was corrupted.

Tips:

You can generate .htaccess file from admin panel. Follow the below steps for generating a fresh .htaccess file.

  • Login your WordPress admin panel
  • Click on settings and select Permalinks option.
  • Now click on Save changes button, without making any changes.
  • .htaccess file will be generating on your root directory.

Don’t forget the add custom rules from old .htaccess file to new file.

File Permissions

File permission is very important roles for resolving 403 forbidden errors. File permission control, which can access files and folder on your website. Wrong or incorrect file permission can cause 403 errors.

Above two solutions are not helpful for resolving 403 forbidden issue, incorrect file permission can be the most cause.

If you don’t have more knowledge about the file permission, please ask to your hosting provider customer support to check your website for correct file permissions.

Tips:

Before connecting to your hosting provider customer support executive, take a file and database backup in your local computer.

 

Leave a Reply

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