WordPress is giving me 404 page not found for all pages except the homepage

后端 未结 22 1318
独厮守ぢ
独厮守ぢ 2021-01-29 21:35

All of a sudden I go to my WordPress website and all the pages give me a 404 page not found page. I\'m assuming the problem lies with the permalink structure, which I could swea

22条回答
  •  猫巷女王i
    2021-01-29 22:32

    If you have FTP access to your account:

    First, login to your wp-admin and go to Settings > Permalinks

    You should see something at the bottom that says:

    "If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all."

    If this is true do the following:

    1. Go into preferences for your FTP client and make sure hidden files are displayed (varies depending on your FTP client) - If you don't do this you won't be able to find your htaccess file

    2. Go to the folder that your wp-admin, wp-content, wp-includes directories are located. Check for .htaccess file. If it exists skip to step 4

    3. If it does not exist, create a new blank file in your FTP program called .htaccess

    4. Change the CHMOD for your .htaccess file to 666 (your preference on how you want to do this)

    5. Go back to your Permalinks page and edit the link structure you want. Problem should be solved!

    6. Make sure to change the chmod of the htaccess file back to 644 after you are done.

    Just had the same problem and it seemed to fix it instantly! Good luck!

提交回复
热议问题