Before pointing out some methods to fix the 403 error, make sure your backup is up to date.
If you haven’t set up a backup solution for your WordPress site, do so immediately; this can save you a lot of headaches, especially with website crash errors .
Now, follow the steps below.
1. Check your file permissions
As mentioned at the beginning of this article, the 403 error is a consequence of the server rejecting a request due to lack of proper permissions . To verify if the permissions are correct, you must use an FTP administrator, in the administration panel of your host.
In the WordPress installation folder there is a directory called public_html. Double click:
In each file there will be a number, as shown in the figure:
After that, That value indicates which interactions are enabled for which group of users. For example, all WordPress folders should default to 755 by default.
If the column with this data does not appear:
right-click on the Media Directors Email Lists column title to activate it;
right-click on each file or folder and choose the “File permissions” option.
This numeric value can be changed manually, which automatically updates the permissions capability:
Similarly, The value 755 (or 744) applies to folders and allows all users. Similarly, To read and execute the files contained in that location. Additionally, it limits the owner’s permission to make changes.
In order for any user to be able to insert and edit the files,
After that, The code must be 777— not indicated for security reasons .
Individual files are classified with code 644 (or 640), which has the same specification as 755.
All folders must contain the value 755. You can set that file permission by checking the “apply to directories only” box, applicable only to directories. Clicking OK will cause FTP Manager to reset permissions for all subdirectories of that folder.