• Hi,
    about 2 years ago or so i started a small website project using wordpress as cms, it required a lot of wordpress customization ( custom theme ) etc… once finished the site stayed the same, i didnt do any update to the content at all, it ran perfectly fine until the last 3 months or so…

    I noticed that traffic went from 200-300 visits per day, to 0 visits per day, very suddently… i looked at the website and saw that the homepage loaded fine, but any other page was giving me a “not found” error.

    After contacting my host they told me that the issue was with the .htaccess, they restored an old version of it and everything worked fine again. The problem was that the .htaccess didnt have anything in it, it was empty, the rewrite rules were not there, therefore since i am using custom permalink structure all pages were not found…

    So anyways the issue was fixed now, but a week later it happened again, then it got fixed again and still it happened once again not long afterwards…

    I am really fed up with this, i dont know what is going on ? the site ran fine without any issue for over 1 year, and only now suddently is having issues… is this a known bug or something ?

    Unfortunately i do not want to update to the latest version of wordpress, this would require too much time to figure out how to make everything compatible with the latest version… this shouldnt be necessary anyways because like i said, the site was perfectly fine before…

    My hosting provider did a security audit to see if my site was being hacked somehow, and apparently they found nothing suspicious… i dont know how thorough their audit was but i dont know what to do now so i am hoping someone could help me ?

    As far as i can tell my site doesnt use any cron job either, its just a regular static website that never gets updated…

    thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    is this a known bug or something ?

    Nope. WordPress only touches the .htaccess file when an admin tells it to such as for updating permalinks from fancy to default or vice versa.

    Unfortunately i do not want to update to the latest version of wordpress, this would require too much time to figure out how to make everything compatible with the latest version…

    That’s fine and up to you, but depending on how old your installation is it may get harder to get support here.

    My hosting provider did a security audit to see if my site was being hacked somehow, and apparently they found nothing suspicious…

    It could be a hack (would be my guess), or an errant cron job, or other software gone awry.

    Can you provide a link? Another set of eyes looking at your WordPress site may not be a bad thing.

    I agree with Jan. Sounds like you’ve been hacked. You could start by scanning your site’s url with these free online scanners.

    1. http://sitecheck.sucuri.net/scanner/
    2. http://www.unmaskparasites.com/

    Thread Starter rastacook

    (@rastacook)

    I used both online scanners and my site is clean, the only thing they mention is that wordpress outdated, which i already knew.

    is there a way to make the .htaccess read-only ? so that it CANNOT be modified by wordpress ( or anything else… )

    Thanks

    Please post a url.

    You can change the .htaccess to 444.

    AITpro

    (@aitpro)

    Are you using a cPanel tool called HotLink Protection – it will destroy your .htaccess file at regular intervals. The only thing i have found to stop this destructive tool is to lock the root .htaccess file with 404 file permissions since even selecting disable does not really disable it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘.htaccess keeps getting erased ?’ is closed to new replies.