403 forbidden error solution in WordPress

We share knowledge for FREE! Give us a Like, it matters a lot 🙂

403 forbidden error solution in wordpress – caused by 3 main reasons

What is it:

I’m writing this post based on my personal experience where I was facing 403 forbidden error in one of my website pages.

Below is the screenshot of 403 forbidden error from my Contact page.

403 forbidden error solution

Why is it:

There are mainly 3 reason for 403 forbidden error.

  1. Caused by WordPress Plugins
  2. Corrupted .htaccess file
  3. Incorrect File Permission

How to:



403 forbidden error solution caused by Wordpess Plugin

 

In my case error was appearing only in the Contact page. I thought it could be because of any plugin I use only in that particular page. I logged into the WordPress Admin Page and deactivated the Contact Form Plugin and again went back to the Contact page and refreshed it, Thats it!! 403 forbidden error was no longer appearing.

After few seconds I reactivated the Plugin and refreshed the page, surprisingly Issue was resolved for me after a Deactivation and Reactivation of the Plugin.

If in case you are not aware of which plugin causes the issue then I would suggest you to follow the below steps:

  1. Go to WordPress Admin » Plugin » Installed Plugins » select all plugins and Deactivate
  2. Refresh the webpage, if 403 forbidden error is not appearing then confirmed that the issue is with one of the plugins.
  3. Activate each plugin one by one to identify which plugin causes the issue.

Unlike in my case it is not mandatory that the issue should get resolved once the plugin is reactivated, if issue is not getting resolved after reactivation then you should contact the plugin developers or install an alternative plugin for the same purpose.

 

403 forbidden error solution caused by Corrupted .htaccess file

 

This is another reason for 403 forbidden error, follow the below steps to resolve this issue.

  1. Login to FTP and download the .htaccess file to local system (just in case as a backup)
  2. Delete the .htaccess file from FTP

htaccess delete

  1. Refresh the webpage, if 403 forbidden error is not appearing then confirmed issue is with the .htaccess file
  2. Create a fresh .htaccess file: Go to WordPress Admin area Settings » Permalinks » Save Changes
403 forbidden error solution caused by Incorrect File Permission

 

This is not a common case but however we can not ignore discussing about it. Below should be the standard file permission for the files and folders in the WordPress site.

All folders should have the standard file permission of 744 or 755

All files should have the standard file permission of 644 or 640

If the permission number is set to be different then you could face the 403 forbidden error.

You can correct it by yourself logging into your website FTP but I would strongly suggest you to contact your hosting provider and correct it for you, else hire an expert to do it.

Please let me know if this was helpful, also you can reach out to me @ ask for any help.

We share knowledge for FREE! Give us a Like, it matters a lot 🙂

About Anson

I’m Anson, having versatile experience in Business Process Outsourcing, Finance & Accounting, Information Technology, Operational Excellence & Business Intelligence. I'm currently working in a MNC in Bangalore, India. Learning anything new has always been my passions and if its related to Business and Technology then, I love it. This website/blog is an outcome of my passion towards it and I have been blogging since 2012. Outside business and technology I’m a movie freak who spends hours together watching and learning Cinema.

Leave a Reply