Silverstripe on DreamHost

Hi does anyone know how to get the mod_rewrite working on DreamHost so that index.php/ isn’t showing before every link? The .htaccess file doesn’t seem to work - has anyone got this working correctly on Dreamhost?

[Bump] Anyone running Silverstripe on Dreamhost? Have you managed it without index.php/ appearing in the URL before every page? I’m not sure the .htaccess file is being read.

  • SOLVED -

Ok I don’t know if I was using an older (v2.3) .htaccess file, or if there was something else wrong with the file I was using, but this code worked perfectly for me:


<Files *.ss>
Order deny,allow
Deny from all
Allow from

Order deny,allow Deny from all RewriteEngine On RewriteCond %{REQUEST_URI} ^(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L] ### SILVERSTRIPE END ###