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

后端 未结 22 1178
独厮守ぢ
独厮守ぢ 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条回答
  • 2021-01-29 22:34

    I just changed the permalink to 'month and day'of all the posts by ging to setting>permalink.

    Now all posts are open and working fine.

    Again, I renamed to all posts to its actual permalink. Its again working fine.

    This method worked for me :-)

    0 讨论(0)
  • 2021-01-29 22:35

    Just Navigate to Settings->Permalink in your dashboard and then Save Changes button in the last.\

    0 讨论(0)
  • 2021-01-29 22:35

    If your WordPress installation is in a subfolder (ex. https://www.example.com/subfolder) change this line in your WordPress .htaccess

    RewriteRule . /index.php [L]
    

    to

    RewriteRule . /subfolder/index.php [L]
    

    By doing so, you are telling the server to look for WordPress index.php in the WordPress folder (ex. https://www.example.com/subfolder) rather than in the public folder (ex. https://www.example.com).

    0 讨论(0)
  • 2021-01-29 22:38

    I have the same problem and so I remove the Apache and make it again and the problem was solved.

    0 讨论(0)
提交回复
热议问题