This guide will inform you about the 403 Forbidden Error and how to fix it too. It is one of the most awful errors that WordPress starters can face. You can easily fix this problem after reading this article.
What is a 403 Forbidden?
The working mechanism of WordPress represents codes and (text/graphical) messages in terms of any error. You can visit our list of WordPress errors and how to fix them.
The 403 Forbidden error is come on screen when a server permission rule don’t authorize access to a particular page. This error comes up with this text:
You can see 403 Forbidden error with different scenarios such as:
- Access denied on wp-admin or WordPress login page.
- During WordPress Install.
- Error while visiting any web page on your WordPress site.
- It might be possible that you only see “Access Denied” instead of full 403 Forbidden code.
- Another option is that you receive “Access to your domain www.xyz.com was denied” or “You are not authorized to view this page.”
We have described about different types of 403 errors. Now let’s introduce different causes of this error.
What Causes 403 Forbidden Error in WordPress?
- The installation of unverified or badly designed security plugins is mostly a usual cause of the 403 Forbidden error in WordPress. These bad plugins can block a single or complete range of IP addresses because of their poor configurations.
- If the .htaccess file is corrupt so it can also be a cause of 403 error.
- If a hosting company has updated its server software settings accidently so it can resist the normal working of a website and shows 403 forbidden error.
Let’s talk about the solutions to solve the 403 forbidden errors in WordPress.
Fixing 403 Forbidden Error in WordPress
Before starting to fix any errors you should create a complete backup of your WordPress website. You can use a latest WordPress backup plugin and save your complete work. After that you can follow these points:
1. Fixing 403 Forbidden Error through a WordPress Plugin
First of all deactivate your entire WordPress Plugins temporary. Then check the status of your error if your error fixes so it means that the error was coming because of any plugin.
Now reactivate all plugins one by one while checking the 403 error and this is how you can find out the main cause of the error.
2. Fix 403 Forbidden Error through Corrupt .htaccess File
Mostly the cause of 403 error is the corrupt .htaccess which is placed in WordPress website. Editing in .htaccess file is not difficult. First of all you have to access the FTP client or file manager in cPanel. Then go into the root folder of your WordPress website and locate the .htaccess file. You have to download the .htaccess file to your system and save this file as the fresh backup of your .htaccess file. Then delete file from your server.
Now try to access you website and check that 403 error is solved or not. If it is fixed, then it means that the .htaccess file was corrupted. After that you can create a new .htaccess file from the WordPress admin, then goto Settings and create .htaccess file from Permalinks.
After that just click on the Save Changes button which is at the left bottom of the page and WordPress will generate a new .htaccess file for that website.
3. Fix 403 Forbidden Error through File Permissions in WordPress
Every file of website has its file permission. This permission process allows and disallows its users. But incorrect file permissions can cause 403 forbidden error which can create a barrier in front of one or more than one users
If 403 forbidden error do not solve from the above two methods then you can solve the error through incorrect file permissions. You can talk to your WordPress hosting provider to optimize and check your website for right file permissions. Few hosting providers are very helpful, they will likely fix that for you otherwise you can hire a professional individual to avoid any damages and get instant solution.
But you can also do it by yourself. You just have to connect to your WordPress website by using an FTP client. Find out the root folder containing all your WordPress files.
Click for folder selection, press right click and then select File Permissions from the menu. FTP client will show a file permissions dialog box such as:
- All folders should have a file permission of 744 or 755 of WordPress website.
- All files should have a file permission of 644 or 640 of WordPress website.
- Root folder file permission to 744 or 755. Check next box “Recurse into subdirectories” and then check the option that says “apply to directories only”
- Press “OK” Now your FTP client will start setting permissions to all its subdirectories in that folder.
- After that repeat this process for all file and now use file permission of 644 or 640 and remember to select “Recurse into subdirectories” and “apply to files only” options.
- Press OK button and now your FTP client will set file permissions for all the targeted files.
- Now it is the time to check and verify the website that 403 forbidden error is gone.
This is a very useful article and we hope that this guide will help you to fix the forbidden error 403 in WordPress. You can also contact us to get the one to one professional tips.