WordPress 403 Forbidden
What is the 403 Forbidden Error?
The 403 Forbidden error means that your web server understands the request that the client (i.e. your browser) is making, but the server will not fulfill it. In more human-friendly terms, it basically means that your server knows exactly what you want to do, it just won’t let you do it because you don’t have the proper permissions for some reason. It’s kind of like you’re trying to get into a private event, but your name got accidentally removed from the guestlist for some reason.
What Causes the 403 Forbidden Error on WordPress
The three most likely causes of the 403 Forbidden Error on WordPress are:
How to Fix 403 Forbidden Error on WordPress
- Connect to your server via FTP (login to control panel)
- Find the
.htaccessfile in your root folder
- Download a copy of the file to your computer (it’s always a good idea to have a backup just in case)
- Delete the
.htaccessfile from your server after you have a safe backup copy on your local computer
- Now, you should be able to access your WordPress site if your
.htaccessfile was the issue.
- Go to Settings → Permalinks in your WordPress dashboard
- Click Save Changes at the bottom of the page (you do not need to make any changes – just click the button)
Thats all… Now it will generate your new .htaccess file.
- Connect to your server via FTP (use filezilla or any FTP manager)
- Goto file manager, find out the wordpress files and directories
- According to the WordPress Codex you have to change the file and directory permissions.
- Files – 644 or 640
- Directories – 755 or 750
- One exception is that your wp-config.php file should be 440 or 400.
- To set these permissions, right-click on the folder that contains your WordPress site. Then, choose File Attributes:
- Enter 755 or 750 in Numeric value box. Then, choose Recurse into subdirectories and Apply to directories only:
- Once you’ve applied the correct permissions for directories, you’ll repeat the process for files. Only this time:
- Enter 644 or 640 in the Numeric value box
- Choose Recurse into subdirectories
- Choose Apply to files only
- To finish the process, you just need to manually adjust the permissions for your wp-config.php file to make them 440 or 400:
Still if you have the forbidden error with your WordPress website, the only final solution will be from your server admin. Contact your server admin and tell them to change or update the mod rule.
Finally Thats it…