• Resolved aladina81

    (@aladina81)


    Hello all,
    I got a malware and I needed to reinstall wordpress.
    I made sure to put the all the WP files and folders where they were before, under the folder Blog (adelerotella.com/blog)
    The problem I have now is that only the blog page works, homepage and all other pages don’t.

    The error showing is
    “Forbidden
    You don’t have permission to access this resource.”

    I updated the .htaccess file,
    I double checked the homepage is set as a static page,
    I made all the folders with a file permission 755.

    I don’t know what else to do to have my pages running.
    Thank you so much if you can help me.

    The page I need help with: [log in to see the link]

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.wordpress.org/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 aladina81

    (@aladina81)

    Hello t-p,

    Thank you very much for your answer.

    I want to tell how I fixed the issue, with the help of my hosting provider.
    Simply I selected the PHP 7.4 version and I modified the links inside .htaccess and index.php files.

    Moderator t-p

    (@t-p)

    Glad its sorted 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘all pages not working, except /blog’ is closed to new replies.