Support » Fixing WordPress » Something Keeps Chaning My .htaccess File

  • Ok, something is changing my .htaccess file, which is causing search result links to my website being redirected to spam sites. This has effectively killed traffic to my site, according to Google Analytics. I’ve been going back every other day or so to upload my unaltered .htaccess file.

    What’s being changed is this:

    <ifmodule mod_rewrite.c=””>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L] <—— /index.php being replaced with spam link.

    How do I go about protecting my .htaccess to these hacks? The same thing is happening inside my wp-content folder.

    I’m running WordPress 3.4.2. I’ve tried updating to 3.5, but had to revert when it crippled my website. I’m not using any kind of protection programs, at the moment. Yes, I have added various code to my .htaccess file to help prevent this, but they don’t seem to work.

    Should I just install the Bulletproof Security plugin?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Something Keeps Chaning My .htaccess File’ is closed to new replies.