522 Posts in 283 Topics by 224 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1350 Views |
-
mod_rewrite on DreamHost?

8 May 2010 at 3:03am
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 on Dreamhost - has anyone got this working correctly on Dreamhost?
Thanks,
Neil -
Re: mod_rewrite on DreamHost?

18 May 2010 at 3:22am
- SOLVED -
Ok, I don't know if I was using an older v2.3 .htaccess file but this code is working for me:### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files><Files web.config>
Order deny,allow
Deny from all
</Files><IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ###
| 1350 Views | ||
|
Page:
1
|
Go to Top |

