Sunday, 7 April 2013

1and1 changed my .htaccess file!

Over the last few months I’ve had sporadic random changes to the .htaccess files on my website.

I looked again today when I noticed that some of my sites I look after are behaving incorrectly.

The .htaccess file had been changed to this:

AddHandler x-mapp-php6 .php3 .php4 .php .phtml

More to the point, all of my changes were gone.

What caused it?

I have a hunch.  The changes that occurred at various places on my website occured at pretty much exactly the same time as I added an additional domain to my package.

So the moral is, if you’re using 1and1 for hosting, and ever add a domain, they’ll break the rest of your websites.

I haven’t had any useful help from 1and1 on this.  They’re claiming that someone is hacking my site, but the logs don’t show anything, so I think that’s unlikely to be the cause.  My money’s on the hunch at the moment.


  1. Follow up post to follow, but the same has happened again, this time deleting a domain from the account.

    Again, 1and1 refuse to investigate.

    I suggest you avoid them.

    1. 1and1 have finally got back to me with a slightly incomprehensible answer.

      It appears the problem was caused by setting up "Local PHP Settings" on their control panel.

      When you do that, their servers will periodically overwrite your .htaccess