Sometimes, it can seem as though there are no shortage of WordPress errors to overcome, although the platform is stable and secure. Though, while this means the built-in error reporting is doing its job, you still need to fix issues that arise. The 403 Forbidden WordPress error is a common issue, with a straightforward solution.
Most often, the problem relates to permissions. Though, in some cases, you ran run into faulty plugins, corrupt files, and a few other triggers. With a few quick tweaks to your core files, you’ll be able to get back up and running in a flash.
For this post, we’re going to look at the 403 Forbidden WordPress error, and show you a few methods to pinpoint the cause and fix the problem. First, let’s explain more about the error itself.
First off, the 403 Forbidden WordPress error is one of the many ‘HTTP status codes’. You’ll know this at least through a 404 error, but there are lots more – almost 600, in fact. There are blocks of numbers that relate to similar issues, such as success messages, redirects, and more.
The 400 range of numbers relates to ‘client errors’. In other words, this means the client (in this case the browser) requests information from the server, but it won’t give it over. In most cases, the server understands what the request is, but won’t authorize it.
Lots of times, you’ll see a direct reason for the error within its ‘payload information’. In other words, the text you’ll see on the 403 Forbidden page itself.
To boil it down further, the server knows the browser, and understands what it wants, but the browser doesn’t have the right permissions. How the server displays this depends on the browser your use.
Before we fix the 403 Forbidden WordPress error, it’s worth noting that it could look different depending on the server the site uses, and your browser. For example, there could be some information on the server and error, yet nothing else…
…or some further clue as to why the error exists:
In a nutshell, if you see a mention of permissions or an explicit “forbidden” message, you’re often dealing with the 403 Forbidden WordPress error.
Fixing the 403 Forbidden WordPress error requires you to poke around in your server’s core files and settings. As such, you’ll need the following to fix the task at hand:
Once you have these to hand, you can start deciding how to fix the error.
There are four methods we suggest for fixing the 403 Forbidden WordPress error. Here they are:
The solutions here go from most to least likely. Though, you’re free to jump around the article and investigate the methods that appear most suited to your unique situation. With this in mind, let’s begin!
First off, the 403 Forbidden WordPress error is often a permissions-based issue. As such, this is the first place to start.
The first step is log into your server through SFTP, and get to your root folder. You may also see public_html, www, the name of your site, or something similar:
From here, select the folders within and right-click. This should bring up a context menu. Depending on your SFTP client, you may see a few different options. Regardless, there will be an option here to view the information on the file, or an explicit option to check the file permissions:
If you have scant knowledge of file permissions and what the numbers mean, we have an article about it. Though, you don’t need that information for this task. The official WordPress guidelines state that folders should have the permission 755. This means that an administrator (or owner) can do everything with a file, but others can’t.
There will be a dedicated entry field for your file permissions, and once you enter and save you can turn your attention to your files.
Here, you’ll follow the same path as before, but this time use the 644 permission. This is similar to 755, but doesn’t give anybody Execute privileges.
Though, you will have to single out your wp-config.php file, as this often uses a different set of permissions – 440 or 400. You’ll see from the checkboxes, this locks down the file to read-only privileges:
From here, check your site for the 403 Forbidden WordPress error. If it’s still present, you can continue onto the next method.
A classic way of fixing a WordPress error is to deactivate all of your plugins, then reactivate them. This can rule out a rogue line of code inside one of those plugins as a cause for the error.
To do this, go back to your server using SFTP, and find the wp-content folder. Inside will be the plugins folder:
Next, create a copy and store it on your computer. This is because you need to make changes, and should have a way to roll back any other site-breaking issues you encounter.
From here, rename the plugins folder to something else. The exact filename doesn’t matter, as the effect will be the same – this will disable all of the plugins on your site. At this point, check for the 403 Forbidden WordPress error.
If you see no change to your site, revert the name of your plugins folder and continue with other solutions. Though, if your site is back to normal, you have more work to do.
First, rename your plugins folder back to the original. This may deactivate all of your plugins within WordPress. You can find this out from your Plugins > Installed Plugins page within WordPress:
Your task here is to activate plugins one at a time until you find the culprit. When you do, there are a few options to take:
Though, if you still have the 403 Forbidden WordPress error, and this step hasn’t worked, you could also look to your .htaccess file.
There’s one more aspect you can look at within your server in order to fix the 403 Forbidden WordPress error – your .htaccess file. This is a configuration file for your server. Though, there are some caveats here:
The simple approach here is to check your server’s root site directory. If there’s no file, you can skip this method. Though, if you can see a .htaccess file here, you run an Apache server and the file could be corrupt.
To fix it, first download the file as a backup. Next, delete the file from the server. From here, head into your WordPress dashboard to the Settings > Permalinks page:
The final step here is simple: Click the Save Changes button to generate a new .htaccess file:
Once you’ve done this and determined that the file is fine, you can re-add the content from your backup file.
Before we wrap up, it could be that the 403 Forbidden WordPress error affects your assets (such as media, CSS, and JavaScript) and nothing else. If this is the case, there are two avenues to try:
In a nutshell, if you see a 403 Forbidden WordPress error where you don’t expect, check in with your host and see if they can help you with the issue. It could be that your CDN or hotlinking protection needs a reconfigure.
At this point, you may have tried all four methods in the article, and come up short. Our advice here is not to give up just yet. It’s likely that your host will have some insight into why your issue exists.
As such, you’ll want to contact your host’s support to get to the bottom of the 403 Forbidden WordPress error. They should have the expertise to dig into your installation and help you get back to normal.
Though, take note that if there is a deeper reason for the error, you may need to reinstall your site. Your backup from earlier will come in handy, and if you have a clean backup just prior to the error, even better.
While WordPress is a stable platform that runs on state of the art technology, there will still be errors to resolve. This is true for all web apps and platforms. The 403 Forbidden WordPress error is a permissions-based issue that will need you to work within your core files.
In this article, we’ve given you four ways to solve the 403 Forbidden WordPress error. Here are the methods:
Will this article help you fix the 403 Forbidden WordPress error, and do you have any questions? Let us know your thoughts in the comments section below!
Trying to figure out how to start an online course so that you can share…
Considering using LearnDash to create online course content with WordPress? LearnDash is a popular WordPress…
WordPress XML files see a lot of use for me as a content creator, and…
If you’re looking for a way to deliver an online course, complete with all the…
Search Engine Optimization (SEO) is crucial for any website that wants to maximize its traffic…
Kinsta is a notable brand in the WordPress hosting space. The standout aspect of the…