• Hello. All the pages/posts on my wordpress powered site result in Apache 404 errors. The only pages working are the front page and the dashboard. The 404 error is a plain white apache error page, not my 404.php in my themes. The website is https://www.looneylunar.com, but the front page is an HTML file. The wordpress is at https://www.looneylunar.com/index2.php. It’s an error with my .htaccess, but I have no idea how to fix it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • This sounds like a permalinks problem. Check your permalink settings and then click Save Changes even if you haven’t changed anything. If this does not work, see:

    https://codex.www.ads-software.com/Using_Permalinks#Using_.22Pretty.22_permalinks

    Thread Starter Nate

    (@nironan12)

    Now every page but the front results in a 500 internal error page! :'(

    Thread Starter Nate

    (@nironan12)

    Please I need a fix for this… :'(

    Hey – responding to an old post because I just had a hell of a time solving this and couldn’t find a decent explanation in the forums.

    This is almost certainly an htaccess thing. YOu need to add this to your htaccess file:

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

    No!

    WordPress either creates/amends the .htaccess file for you or provides you with the correct block of code to manually add to your .htaccess file. The Rewrite rules you’ve quoted above will NOT work for everyone.

    Hi,

    Set your desired permalinks settings and add this ode in htaccess:

    # BEGIN WordPress

    <IfModule mod_rewrite.c>
    ErrorDocument 404 /index.php?error=404
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Thanks,

    Shane G.

    Similar issue here in that I made a .htaccess file to block directory listings. After I do all posts and pages return 404.

    Fix: Go into your Admin page Dashboard | Settings | Permalinks | no need for any change but click [Save Changes]. Whatever this does it fixes this 404 problem with WordPress after you’ve made changes to your .htaccess file. Simple if you just know to do it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘.htaccess making all pages 404’ is closed to new replies.