Silverstripe on DreamHost

apps

#1

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?
Thanks,
Neil


#2

[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.


#3
  • 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:

SILVERSTRIPE START

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

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 ###