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

后端 未结 22 1233
独厮守ぢ
独厮守ぢ 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:11

    .htaccess is a hidden file, so you must set all files as visible in your ftp.

    I suggest you return your permalink structure to default ( ?p=ID ) so you ensure that .htaccess is the problem.

    After that, you could simply set "month and name" structure again, and see if it works.

    PS: Have you upgraded to 3.1? I've seen some people with plugin issues in this case.

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

    IF all this dont work, your .htaccess is correct, and permalinks trick didnt work, you may have not enabled your apache2 rewite mod.

    I ran this and my issue was solved:

     sudo a2enmod rewrite 
    
    0 讨论(0)
  • 2021-01-29 22:14

    Basically the .htaccess file should exists and the httpd.conf should be correct.

    In my case, I changed the file /etc/apache2/apache2.conf in section:

    <Directory "/var/www/html">
    

    Line changed is:

    AllowOverride None
    

    to

    AllowOverride All
    

    And restart the web server with

    systemctl restart apache2
    
    0 讨论(0)
  • 2021-01-29 22:14

    This error is causing due to disabled of rewrite mod in apache httpd.conf document ,just uncomment it and enjoy the seo friendly permalinks

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

    You may have .htaccess disallowed in webhost settings. Setting to default permalinks would work in that case.

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

    after 2 long days, the solution was to add options +FollowSymLinks to the top of my .htaccess file.

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