Support » Fixing WordPress » .htaccess file being overwritten randomly

  • About once every 5 to 7 days my .htaccess file gets overwritten somehow.

    Everything works fine with the default access file but when it gets overwritten it looks like this. Also, there seems to be additional blank lines inserted before the code so I’m not sure if that does any harm.

    # 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

    I thought this might be caused by a 301 redirect plugin I am running but I disabled the plugin and it still happened.

    I didn’t try to delete/remove the plugin completely.

    Any thoughts on what might be causing this?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess file being overwritten randomly’ is closed to new replies.