At RSPONSIV we have to deal with hacked sites on an occasional basis.
Not often, but not infrequently either. This year we have had a couple of sites where the hack was in the htaccess file. If you don’t know what that is, don’t worry about it. It is one of the more technical sides of a website. Suffice to say, most Apache-served websites have one and it is necessary for some tasks.
This file is not inside your website’s code but rather is located at the root of your website. But it does have the ability to rewrite behaviors your website performs. And that is the problem.
Sucuri, our favorite website security company, wrote a great blog post describing in details about a very vicious version of one of these hacks, how it works, and what it can do to your website.
Read how your site can be redirected to porn sites by hackers.