
How to Fix a 403 Forbidden Error on Your WordPress Site
- rohitjoshii8008@gmail.com
- 0
- on Nov 19, 2022
Hey, Are you Seeing an error on your WordPress site can be frustrating and deflating? Here is a detailed guide in two steps to fix this error 🙂
The 403 Forbidden error in WordPress typically occurs when there are incorrect permissions set for certain files or directories, or when there are configuration issues on the server. Here are a few steps you can take to try and fix this issue:
The two most likely causes of the 403 Forbidden Error on WordPress are:
Â
Disable Plugins and Themes:
Sometimes, a conflict with a plugin or theme can cause the 403 error. Temporarily deactivate all your plugins and switch to a default WordPress theme like Twenty Twenty-One. If the error is gone, then you can activate the plugins and themes one by one to identify the one causing the issue.
 Corrupt .htaccess
file :
The .htaccess
 the file is a basic configuration file used by the Apache web server. You can use it to set up redirects, restrict access to all or some of your sites, etc.
-
Login to Cpanel And navigate file manager
-
Find the .htaccess file in the root folder or Public_htmlÂ
-
Download a copy of the file to your computer (it’s always a good idea to have a backup just in case 🙂
-
Delete theÂ
.htaccess
file from your server Or The .htaccess file in your WordPress installation could be causing the 403 error. Rename your existing .htaccess file to something like “.htaccess_backup” and try accessing your website again.
If the error disappears, you can generate a new .htaccess file by navigating to Settings -> Permalinks in your WordPress dashboard and clicking the “Save Changes” button.Â
- Go to Settings → Permalinks in your WordPress dashboard
- Click Save Changes at the bottom of the page