Firstly let’s start by saying, running a website is awesome. But,
there is no rule that awesome things always go easily and as planned. So do our websites.
No matter how well you maintain your website they do run into errors every now and then. But the Best part: Every error doesn’t require a techie support to rectify them.
So, I’ve planned to walk you through one of the naive WordPress error, i.e., 403 Forbidden Error.
Firstly, let’s understand:
What is 403 Forbidden error?
The error message means that the website received the request but is not allowed to deliver the webpage, you get a 403 Forbidden error message instead.
To put it in simple words:
The error message means that you are trying to access a webpage that you don’t have access to.
This much of basic knowledge is enough to continue further. So, since we know what actually the 403 Forbidden error is, let’s see:
The reasons for 403 Forbidden Error
I’ve put all the reasons which could possibly cause the 403 error in the below infographic. Do take a wild guess what might have caused the error on your site.
Could you guess any reasons which might have triggered the 403 forbidden WordPress error on your site?
If yes, great. Now you can directly dive into the particular section and try fixing the error.
No problem if you couldn’t figure out who might be the culprit. We will walk you through all the errors and fixes for them in next section.
Fixes for 403 Forbidden Error
Before we actually start with the fixes Make sure you back up your entire site data before continuing further because if you mess up something then you might have to spend a lot for recovering your stuff.
So, let’s start fixing your site now:
1. The issue with new Plugin
This might be the cause if you have installed a new security plugin which is incompatible with your version of WordPress or might have been corrupted.
That plugin might be causing authorization issue or an IP address issue which might have triggered the 403 error on your site.
So, make sure you change the security plugin to fix the error.
Sounds easy, but what if you can’t even access your admin panel? worry not, I’ve got your back.
Just access your c-panel and rename the plugin which you think is causing the error.
If you haven’t installed any new security plugin or if you don’t have a security plugin then this might not be the reason to worry about.
But, we highly recommend you to install a security plugin. Let’s move onto next possible error and fix for that.
3. A corrupt .htaccess file
So, to check whether your .htaccess is causing the problem, just log in to your c-panel and rename a .htaccess file to anything.
Searching where’s .htaccess file?
Chill. Here’s how to access a .htaccess file. Firstly login to your c-panel then open the File manager >> Public_html >> wp-admin >> .htaccess
Once you find this file just rename the file to something different.
Then go refresh your WordPress dashboard, if it’s working then you just need to do a small task to complete this step.
In your WordPress dashboard go to settings >> permalinks and then hit enter. Now I can say your site is fully recovered from the error.
If even this method didn’t work for you then the error might be because of wrong file permissions.
3. Wrong file permissions
This just means that you don’t have access to view or modify particular directory on your web server.
Let’s see how to fix this issue:
Firstly go to your c-panel and reach the directory where the error is generating. In the sense go to wp-admin directory if you have a problem accessing the admin area.
If you have a problem uploading an image go to wp-content directory and the right click on the particular directory and click on File Permissions.
I’ll be doing the changes twice to same directories twice, so concentrate here.
First time: You should set the numeric value to 755 and Check Apply to directories only and then click ok as shown below.
Second time: Select the same directory and change the Numeric value to 644 and check Apply to files only and click ok as shown below.
Now just refresh your website. Now you should have permissions if you didn’t have them before.
Still getting the error?
Don’t worry if any of the above techniques didn’t help you fix the problem with your site. Try out these basic fixes:
1. Clear your browser cache: Usually, browsers cache the web pages to showcase them to the client when they are offline also to deliver the web pages at a faster pace.
So, your browser might have cached an error page as a standard page and refused to check the server for updated content. So refresh the webpage after you clear the cache.
2. Clear website cookies: especially if you typically log in to this website and logging in again (the last step) didn’t work.
Also, make sure the cookies are turned on for the website from which you are getting a 403 error.
3. Contact your hosting provider: If none the above techniques worked for you then it’s better to contact your hosting provider and let them know about the issue.
They might help you to sort out the issue.
I hope one of the above-mentioned techniques helped you to sort out the 403 Forbidden error. Do drop your valuable comments in the comment section 🙂
I hope this post: how to fix 403 forbidden error was worth the read.