Yes, it’s Linux shared hosting.
I’ve set up a subdirectory /dev/ where I’ve successfully installed EE (1.6.8). In that subdirectory I have an .htaccess file that makes sure that PHP files are handled by PHP5 (this is my first irritation with 1and1):
AddType x-mapp-php5 .php
AddHandler x-mapp-php5 .php
I’m aware that this could just be the start of my problems… :(
Adding the lines of code from mrlee above allow the home page to work, but template groups throw a 400 Bad Request error (that seems odd, no?).
<IfModule mod_rewrite.c>
Options +FollowSymLinks -Indexes
Options -MultiViews
RewriteEngine on
RewriteBase /subdirectory/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteRule ^index.php/(.+)$ index.php?$1 [L,QSA]
</IfModule>
Substituting other values in the RewriteBase line have no effect. I’ve tried adding and removing index.php as the name of the site’s index page, and I’m not sure any combination is going to work.
I’ve already asked the client to upgrade from their existing 1and1 Home account to a Business account to get the MySQL databases, which effectively doubled their hosting costs, and I’m very reluctant to ask them to change hosting.