• Forbidden

    You don’t have permission to access this resource.

    Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

    I have this error appearing randomly after I added the ssl certificate. the website is hosted in azure, I already riderect everiting to https but the error continues to appear sometimes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator t-p

    (@t-p)

    403 forbidden means that your browser isn’t able to load the scripts up because your server isn’t allowing it. This is a hard one to solve. Because anything could be blocking the server.

    Hence 403 forbidden error is very vague, the error log may give you clue.
    – Most likely this is a server permissions/ownership issue. If its a permission issue, it may tell you which file has incorrect permissions, so ask your host what’s going on. If you are using cPanel, the following tutorial has more information about the error log in cPane: How to view cPanel Error logs
    – If the problem is file permissions, you can follow the steps in the below article to learn how to modify your file permissions: How to change file permissions within cPanel https://codex.ww.wp.xz.cn/Changing_File_Permissions
    – Another possible cause could be a corrupt .htaccess file. Also check your .htaccess files for anything strange.
    – make sure your server settings are not overriding the .htaccess file.
    – Another possible cause could be changes to the server settings (accidental or otherwise). Check with your hosting provider.

    Also see this help guide https://www.wpbeginner.com/common-wordpress-errors-and-how-to-fix-them#403forbidden

    Thread Starter michaelmorais

    (@michaelmorais)

    my .htaccess only has this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    while for the rest, thanks for the reply but my host says it is my part that is failing.

    Thread Starter michaelmorais

    (@michaelmorais)

    The host server is on microsoft iis, the .htaccess file is useless in this type of hosts…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘403 Forbidden error appears randomly sometimes’ is closed to new replies.