Hi all,
I'm currently trying to install Silverstripe on my Infomaniak.ch host plan.
I renamed every HTTPResponse instance to something else successfully, preventing conflit with the php config of my host.
Now I have a problem with mod_rewrite.
The installation goes fine until :
Friendly URLs are not working. This is most likely because mod_rewrite isn't configuredcorrectly on your site. Please check the following things in your Apache configuration; you may need to get your web host or server administrator to do this for you:
* mod_rewrite is enabled
* AllowOverride All is set for your directory
I've asked my host about that, and their answer was :
mod_rewrite is only supported via the .htaccess file.
We don't give access to the vhost configuration and we don't change it.
While using mod_rewrite in .htacces, just be careful not to start the path regular expressions with "/".
Here's my .htaccess (the silverstripe files are located at /ss ) :
### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ss
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ###
Any idea ? I'm really lost with all those rules and still don't understand them :(
Thanks ! :)