1and1.com and Slim and .htaccess?

Hi,

I tried copy/paste the Slim Documentation to my 1and1.com account’s code for a simple “hello world” API.

The .htaccess are not working correctly. The {dochome}/.htaccess is

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule ^$ public/     [L]
   RewriteRule (.*) public/$1 [L]
</IfModule>

and the {dochome}/public/.htaccess is:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

Its a shared server so I do not have access to php.ini or even apache error.log

Has anyone gotten their Slim Framework app successfully deployed to 1and1.com or any other shared hosted server? Would u share your .htaccess files, please?

TIA!
-Rob

As far as I know 1&1 requires a RewriteBase path.

Example file {dochome}/public/.htaccess:

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]