How to Fix 403 forbidden error in WordPress without Hassle

Learn WordPress for Free

How to Fix 403 forbidden error in WordPress without Hassle

how to fix forbidden error in wordpress

As you know WordPress is easiest blogging software, as easiest you will face many error which are very common and can be fix easily in few click. 403 is also another simple error that cause due to the faulty pluginscorrupted .htaccess file and incorrect file permissions. Here in this guide you will show to the ways to fix 403 forbidden error in WordPress without hassle.

What Cause  403 Forbidden Error

The root cause of the error is the faulty scripts that are inserted while installing poorly coded plugins or themes. You WordPress blog show this error while your web server restrict to access the page or the post of your website. The reason is the faulty plugins which are poorly coded. Another reason can be the corrupted .htaccess file which is your blog configuration file that exist in your web server. You can also check that the file permission set your web server is correct or not.

Fix 403 Forbidden Error

  1. Disable the installed plugins.
  2. Delete and regenerate .htaccess file.
  3. Set proper File Permission.

1. Disable the installed plugins.

The main cause that you can fix this 403 forbidden error in WordPress blog is disabling all the plugins. You can cannot access your WordPress dashboard then you need to installed FTP client FileZilla.

After installing Connect FileZilla to your web server. Go to root directory e.g. public_html then search for the wp-content folder, it will be along with wp-include folder. Open wp-content Double clicking it, now you will see plugins folder. This is the folder where installed plugins are place. Simply rename the plugins folder to any name which will disable all the plugins in your blog.

Once disabled you can reload your blog to see wheather the error resolved. If yes, then one of the plugins is causing the issue which you need to remove it from your blog. you can do this by going to your Wordpres dashboard then click on plugins and Installed plugins. Activate the plugin one by one until you find the plugins that break your website.

If this method did not solve the issue than you need to follow the step below.

  • Delete and regenerate .htaccess file.

Another reason that you see the error is because of Corrupted .htaccess file which is your WordPress website configuration file that contains small pieces of code. Before creating or regenerating the file you need to delete the existing file first. To do this you need to connect FTP client FileZilla then open public_html folder from the remote section and in the list of the files you will find .htaccess file. Right click on .htaccess file then click on delete.

After deletion, go back to your WordPress dashboard then click on setting and click on permalinks you simply need to click on save changes button. This will generate the new .htaccess. 

  1. Step-3: Set proper File Permission.

If the file permission is incorrect in your WordPress blog then you will face this error. By default WordPress set file permission Read, Write, Execute to all the files and directories that are in your server. You can alter the correct file permission accessing your web server.

Connect FileZilla then go to root directory. Look for wp-admin folder and set correct file permission to all the files inside the folder.

.

Right click on wp-admin then click on file permission.

You will see the dialog box in your screen where you have to keep the value to 744 or 755 then select the option Recurse into subdirectories  then apply to directories only. Click on OK.

Now, you have to set the files permission. You can provide numeric value type 644 or 640 and click on Recurse into subdirectories  then choose apply to files only. Click on OK.

That all reload your blog you will not see any error in your WordPress website.

We hope that this guide is being helpful to you. You may also like to take a glance on Easy Ways to Fix 429 Too Many Requests Error. Please share and follow us onĀ Facebook and let us know your opinion in the comment section below.

Leave a Reply

Your email address will not be published. Required fields are marked *