• Every 4 hours or so my .htaccess file gets overwritten, it should be

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    BUT what I get is these two lines being put together like this;

    RewriteEngine OnRewriteBase /

    This then causes a 500 internal error on the site and the only way of me fixing this is every 4 hours going in and adding a line break, can anybody advise as to how I can fix this? I have 9 other wordpress installations on my server and none of the other sites which are all upto date are doing this.

Viewing 1 replies (of 1 total)
  • hey there

    This sounds like you have a crazy plugin activated on this site that is causing the htaccess file to be rewritten. This is usually done by some type of Security plugin. I would deactivate any security plugins you have to see if that does the trick.

Viewing 1 replies (of 1 total)
  • The topic ‘htaccess rewriting itself wrong’ is closed to new replies.