3 Best Way to Fix 403 Forbidden Error in WordPress

403 forbidden error

Are you dealing with the 403 forbidden error on your WordPress website? A few methods you can use to fix the 403 or the access denied error on WordPress. Now note some of these solutions will also be involved using an FTP client, there are several to choose from but the one that I’ll be using in this article is FileZilla so make sure you get your FTP credentials ready and an FTP client installed on your computer.

What is a 403 Forbidden Error?

A 403 Forbidden error is a particular type of error that occurs when trying to access a URL. When many of the times you access the URL and the browser face 403 Forbidden Error. When you install WordPress via FTP or direct from cpannel then this type issue is common.

Two Possible Causes:

  • Removal of the file permission or restriction of access permissions
  • Accidental misconfiguration of the webserver.

 3 Ways To fix a http 403 error

  1. WordPress Plugins Corrupt

The first error we can look at is to check all of our WordPress plugins and make sure that there’s not something wrong specifically a security plugin might be causing this issue. To do that we’ll need to deactivate all of our plugins and then activate each one individually to see which one is causing the issue. So on the right let’s make sure that we go up to the plugins area.wordpress plugins cpannel

  • Login into FTP Client Area or Cpannel
  • Select Root Directory then you can see wp-admin and wp-content
  • Let’s double click on wp-content and you see the plugins folder here, we want to deactivate all plugins at the same time.
  • The fastest way to do that is to simply rename the plugins folder.

So I’m going to right click rename you can rename this to anything I’ll just say deactivate and then you should be able to go to your website and see if it works. If your site now works with all of your plugins deactivated that means that one of your plugins is causing the issue. You’ll need to activate each plugin individually until you can find the plugin that is corrupted.

So you’ll want to go back to the FTP area and we’ll rename this back to plugins so I’m going to right click, rename, I’ll remove that to just plugins the cool thing about WordPress is once that deactivated everything all the plugins are in deactivated mode so you can just head back over to our WordPress dashboard, go down to plugins, installed plugins, and all of the plugins are here they’re just deactivated. So activate each one individually and when you come across the plugin that causes the problem with your site again then you know that that’s the one that’s wrong.

  1. Htaccess filehtaccess file cpannel

If deactivating all your plugins didn’t work then the next thing you can check is your htaccess file.

  • FTP client on the right you want to make sure that you’re inside the public HTML of your website so that you can see things like your htaccess file let’s right-click and rename this.
  • You can rename it anything we simply don’t want it to be the htaccess file name.
  • Once you rename that you should be able to go to your website and see if you can access it.

If you can access it then that’s great then we’ll just need to do one quick thing to get you back up and running quickly and you’ll want to make sure you go into the dashboard of your website, head down to settings, permalinks, you don’t have to do anything different to it simply scroll down and click Save Changes. That just makes sure that your permalink structure is the same and that all of your urls can be accessed correctly and you should be good to go.

  1. File Permission

The final fix that you want to look at is there might be an error that’s caused by the file permissions on your WordPress folders and files so let’s take a look let’s go back to our ftp client and we’ll make sure that all of the files and folder permissions are correct and if they’re not let’s go ahead and set them properly. Now this file permissions issue it may have been caused by your hosting provider so you could also check with them to make sure that all your folders and files are working.file permission changes

  • Login FTP Client Area
  • Access Root Directory
  • Right Click on any Folder or File
  • Select File Permission and then provide proper permission as we mention below.

Set proper permissions for a folder or a file. Normal file permission is 644 and folder permission is 755.

They may check this for you and fix it for you or if you feel comfortable doing it you can look at this yourself. Now understand that any changes that you make can affect your site so do be careful. By default all folders on your WordPress website should have a file permission of either 7 4 4 or 7 5 5 that means that these folders and the folders underneath them all should have 7 4 4 or 7 5 5.

If we right click on the wp-admin we’ll go to file permissions you see the numeric value of that and that comes from if you’re deselecting anything up here you sees how these change. So the 755 just means that owner permissions has read, write and execute Group permissions have read and execute and then public permissions is just read and execute.

Now your site should be accessible for you and you should no longer get the access denied or the 403 forbidden error. If it’s still happening then feel free to contact your hosting provider as there might be something on the server that they need to fix for you.

Image Source Google Image

About Manish Singh

Hey Mania, Welcome to the Techmenia! I’m Manish Singh, a blogger from Varanasi, UP, India. Here at Techmenia, I write about latest news on technology and science, and also making money online. We also have some knowledge about Health & fitness. So, Stay with us and Subscribe our blog via email don't forget latest update.

View all posts by Manish Singh →

Leave a Reply

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.