How to fix 403 forbidden error in WordPress?

By | January 6, 2022

How to fix 403 forbidden error in WordPress?

There are several reasons which can create 403 forbidden error. By this error, user cannot access to login to its WordPress account and other users cannot see any content on website.

403 Forbidden Error

There might be following reasons which can create 403 Forbidden Error on your website:

  1. .htaccess
  2. File Permissions
  3. Bug in plugin
  4. Hotlink Protection Misconfigured
  5. Change location of your server

How to fix 403 forbidden error in WordPress?

To solve the error you have to check the reasons which created the error. There are following ways to troubleshoot 403 Forbidden Error.

1. Delete htaccess file

Go to your cPanel of your hosting and open file manager. Open Public_html folder and delete .htaccess file.

How to delete .htaccess file from public_html folder on cPanel

This will fix error on your website and you can create new .htaccess file from WordPress Dashboard. Go to Settings>Permalinks>Click on Save. This will make htaccess file on your hosting.

2. Check and correct file and folders permissions

Go to File manager from your hosting and check permissions. Permission for file must be 644. and permissions for folders must be 755. Change file permissions to 644 and 755. This will solve error from your website.

Checking File Permissions

3. Deactivate plugins from WordPress to fix 403 forbidden error

403 error might be occur by a bug in your plugin. Disable all plugins and check if error is fixed. To disable plugins, Go to hosting and Click on Plugins on WordPress section. Disable plugins one by one.

Disabling Plugins from Hosting

4. Check Hotlink Protection

Check is hotlink protection is misconfigured. Go to cPanel and Click on HotLink Protection on Others tab. Block direct access to extensions and then check if error is solved.

Configuring HotLink Protection on cPanel, How to fix 403 forbidden error in WordPress?

5. Temporary Disable CDN to Fix 403 forbidden error

Content Delivery Network(CDN) can cause 403 forbidden error on your websites. If a small error occurs in your network it’ll cause problem. Try to disable CDN for sometime. It will lift error.

6. Change IP address of your DNS

If you have recently changed your server location, this process also change IP address of your server. Change ftp and domain IP address of your website. To change this Go to cPanel and copy IP address of your server. Go to CloudFlare dashboard or Domain DNS settings and change IP address.

Changing IP address of server on DNS, How to fix 403 forbidden error in WordPress?

If none of these methods work, contact your hosting server provider.