Have you ever encountered the "403 Forbidden" error on your WordPress website

It is one of the most dreaded mistakes a beginner can encounter. But there are also other errors such as " the 500 Internal Server error " or " the 503 error of the unavailable service That you can solve by consulting these different links.

But in the meantime in this article, we'll show you how to easily fix the error "  On WordPress.how to fix error 403 forbidden wordpress

Resolving "403 Forbiden" error on WordPress

Before doing anything, we recommend that you create a full backup of your website. 

If you are using a WordPress autosave plugin, make sure you have access to the latest backup before moving forward.

1. Fixed the "403 Forbidden" error caused by a WordPress plugin

The first thing you need to do is temporarily disable all WordPress plugins. This includes any security plugins you have installed on your website.

If you do not have one installed consult the 10 WordPress plugins to strengthen the security of your blog

If your issue is resolved, then it means that one of the plugins on your website was causing this error. You can determine which plugin was causing the error by activating all your plugins one after the other until the error recurs.

2. Fix "403 Forbidden" error caused by corrupted .htaccess file

Often times, the 403 error is caused by a file ..htaccess corrupted on your WordPress website. Repairing this file is quite easy. First you need to to connect to your website using an FTP client or file manager in cPanel.

We also recommend that you consult our 5 htaccess tips to improve the security of a WordPress blog 

That said, let's continue our tutorial

Then locate the file .htaccess in the root folder of your WordPress website. You must download the file .htaccess on your computer in order to have a new backup. After that, you need to delete the file from your server.

error-403-tutorial-wordpress-how fix-a-mistake-403

Try once more to access your website.

If the "403 Forbidden" error is resolved, it means that your file .htaccess was indeed corrupt. You can generate a new file .htaccess by logging into your WordPress admin area and navigate to the following location “ Settings> Permalinks"

error-billed-on-browser-tutorial-wordpress-how fix-a-mistake-403

Just click on the button Save settings at the bottom of the page and WordPress will generate a new file .htaccess.

3. Fixed "403 Forbidden" error caused by file permissions 

All files stored on your website have file permissions. These file permissions control access to files and folders on your website. Incorrect permissions can cause the 403 error. In fact, they trick your web server into thinking that you don't have permission to access these files. 

If the above two solutions did not resolve the 403 error on your website, then it is likely that incorrect permissions are the cause. You can ask your WordPress hosting provider to verify file permissions. Some hosts can in principle solve this problem for you.

You may also need to know How to optimize a database with one click on WordPress for further.

Changing file permissions on your own can have serious consequences. If you don't feel comfortable doing it on your own, ask a friend for help or contact our customer service.

However, if you want to do it yourself, here's how to check your file permissions. Log in to your WordPress website using a FTP client. Navigate to the root folder that contains all of your WordPress files.

check the permissions of a file how to fix an error 403

Right click on the folder, then select " File Permissions… ”- File permissions - in the menu. Your FTP client will show you a dialog box with file permissions as on this image:

change-the-permissions-dun-file-how fix-a-mistake-403

  • All folders on your WordPress website must have 744 or 755 file authorization.
  • All files on your WordPress website must have a file permission from 644 or 640.

You will be able to set the permission of the file in the root folder to 744 or 755. Check the box next to « Recurse into subdirectories« , then check the option " apply to directories only"

Click the OK button. Your FTP client will start setting permissions to all subdirectories in this folder.

Once it's done, you need to repeat the process for all files. This time you are going to use the file permission of 644 or 640 and of course select the options « Recurse into subdirectories«  et « apply to directories only ".

Discover What You Need to Know About WordPress Caching

Click on the OK button and your FTP client will start setting up file permissions for all selected files. Try to access your website once more, the 403 error should be gone by now.

Remember that if the problem persists, you can always contact the customer service of your WordPress theme or your host.

To continue to secure your blog and optimize it, we also offer some WordPress plugins premium that will ensure the security of the latter

1. Security Ninja PRO

Security Ninja PRO is another WordPress Plugin premium that will help you improve your website security perfectly. It offers a plethora of options and features that will allow you to take charge of every part of your website's security.Security Ninja PRO wordpress plugins protect site against malware virus attacks

Its features are: more than 40 security tests available, a complete scan of your website in order to detect all vulnerabilities and security flaws, the integration of a malware scanner, the backup of your website activities, the planning of different scans and much more

DownloadDemo | Web hosting

2. Hide My WP

Hide My WP is an amazing WordPress protection and security plugin. It effectively allows you to hide the fact that you are using WordPress on your website, without modifying the structure of any file or folder.Hide My WP Amazing Security WordPress Plugin

Its main features are: blocking direct access to php files, changing the permalink, deleting WordPress meta info on headers and feeds, cleaning up unnecessary menu classes and more.

Download | Demo Web hosting

Other recommended resources

Also discover these few links which will allow you to solve other similar errors

Conclusion 

We hope this article has helped you resolve the error "  On WordPress. If you have comments, or suggestions, please let us know in the dedicated section. 

We also invite you to consult our resources if you are a beginner blogger and above all, do not hesitate to share this article on your different social networks.

...