• Hello guys and gals.

    I am having some issues. Yesterday I had a perfectly working blog and was working on the theme, and now today, I am getting constant 404 error pages, and they aren’t even the 404 error pages that match my theme.

    I think this may have something to do with the .htaccess file, which is missing now. I think this was caused when I had my hosting service remove the forums I had on my site so I can reinstall it.

    Basically, I think that once I get a proper .htaccess file on the server, things will be better, but I am not sure what to put in the .htaccess file, as I never mess with that file.

    Can someone tell me what should be in that file? Or how to generate a new one?

Viewing 1 replies (of 1 total)
  • Thread Starter amberleighturner

    (@amberleighturner)

    Nevermind. I figured out what should go in the .htaccess file.

    For future reference I put this:

    # 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
    
    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>
Viewing 1 replies (of 1 total)

The topic ‘Constant 404 errors’ is closed to new replies.