I recently deployed a CakePHP application to a 1and1 server. I was presented with a wonderful 500 Internal Server Error. That only means one thing: a .htaccess was messed up somewhere.
There were many places that pointed me in the right direction to fix this problem. It was definitely an annoying hitch. Seriously, there’s that many people with this problem. (So 1and1, want to help out here and make some changes? Maybe, just maybe, provide an customer error.log?)
Anyway, there is a pretty simple way to do this, since I did it this way too.
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
I simply added a
RewriteBase / to every single .htaccess, the one in the root folder, then one inside app and inside webroot.
1and1 has a reputation for making things complicated, but this wasn’t so bad.