Fix 403 Forbidden Error in WordPress Easily
Some errors in WordPress are really disturbing and 403 forbidden error is one of the most common errors in WordPress site. There are a lot of users who are living with this error because they don’t know how to fix 403 forbidden error in WordPress site. Don’t worry here I will show you how to fix 403 forbidden error in WordPress. You need to know different technical issues of WordPress if you want to run your WordPress site properly.
You May Like:
- How to Fix WordPress RSS Feed Errors Using These Tricks
- Fix WordPress Login Page Refreshing and Redirecting Issue Properly
- Fix White Text and Missing Buttons in WordPress Visual Editor Easily
People will get panic when they find the 403 forbidden error in their WordPress sites. WordPress always shows codes and messages whenever errors occur on your WordPress site. Especially, 403 forbidden error is mysterious for the beginners because they don’t know how to fix 403 forbidden error in WordPress. But this article will help those who are waiting to get the perfect solution.
What is 403 Forbidden Error
The 403 forbidden error is an HTTP status code that accesses to the file or folder you are trying to open has been denied for some reasons. Normally WordPress shows different kinds of messages or codes when 403 forbidden error occurred. Different web servers show 403 errors in different ways. Most common 403 errors just like below.
1. Forbidden: You don’t have permission to access [directory] on this server
2. HTTP Error 403.14 – Forbidden
4. Error 403
5. 403 Forbidden
6. HTTP 403
7. Error 403 – Forbidden
8. HTTP Error 403 – Forbidden
9. Error 403 – Forbidden
10. HTTP Error 403 – Forbidden
There are different scenarios when this error occurs:
403 forbidden in WordPress admin or in WP-login
403 forbidden during installation
403 forbidden during request a particular page
403 forbidden when requesting you domain
Why 403 Error Occur in WordPress
There are particular reasons why 403 error occurs. But most of the time WordPress security plugins are responsible for this issue. Sometimes corrupted .htaccess file, incorrect file permission, hosting or server are accountable for this issue.
Fix 403 Forbidden Error in WordPress
You have different tricks to fix 403 error in WordPress. Here I will show one by one. But remember before doing anything you need to take a backup of your WordPress site.
Error Caused by .htaccess File
Your .htaccess file is responsible for this issue. Most likely corrupted .htaccess file creates this 403 forbidden error. Then you need to remove corrupted .htaccess file from your system so that you can fix 403 forbidden error in WordPress.
At first, connect to your website using FTP client or file manager in cPanel. Then allocate the.htaccess file in root folder of your WordPress site. You need to take a backup of this file before doing anything.
Then delete .htaccess file from your server. Now access your website. If the problem is resolved that means your .htaccess file is liable for 403 forbidden error.
Now you need to generate new .htaccess file. Just go to your Dashboard then click on Settings >> Permalinks. Finally, just Save Changes. It will help to generate fresh .htaccess file.
Error Caused by Plugins
Sometimes the security plugins you have installed on your site can create this issue. If you want to fix 403 forbidden error in WordPress, you need to deactivate all the plugins temporarily. I have already talked about how to deactivate all the plugins on my previous article.
Then access to your website, if everything is ok. That mean’s your plugins are responsible for this issue. Now activate the plugins one by one unless the error will happen. Delete the corrupted plugin and use another one.
Error Caused by File Permission
Incorrect file permissions create 403 error. The file permissions control who can access files and folder on your website. If you have incorrect file permissions it creates such a situation that you can not access these files or folders.
When your file permissions are responsible for this issue then tell your hosting provider to fix this problem.
If you want to fix by yourself just connect your site using FTP client. Then go to the root folder that contains your all WordPress files.
Now right click on a folder and select File permissions. Then you will see a dialog box like below.
You should have a file permission of 744 or 755 in all folders and you should have a permission of 644 or 640 in all files of your WordPress site. You allow to setting the file permission to the root folder to 744 to 755. Select the box Recurse into subdirectories and Apply to directories only. Now click on OK button.
You need to repeat this process again to set the file permission to 644 or 640. Don’t forget to check the boxes Recurse into subdirectories and Apply to files only. Then click on OK button. That’s all, you have done. Try to access your site, you will see the error has gone.
Now you able to fix 403 forbidden error in WordPress. There three methods should be effective for this 403 forbidden issue. If you can not fix this problem by yourself then ask your friends who are familiar with this issue.