Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

v2.4 index.php always in URL

Go to End

9 Posts   10824 Views


Community Member, 5 Posts

3 August 2011 at 12:20am

Removing index.php won't do the trick. It's .htaccess issue. See the code below.

To assure your sivlerstripe directory is set to AllowOverride All, make sure your vhost says so.

        <Directory "/var/www/html/ss">
                AllowOverride All

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

<Files web.config>
   Order deny,allow
   Deny from all

<IfModule mod_rewrite.c>
   RewriteEngine On
RewriteBase /
   RewriteCond %{REQUEST_URI} ^(.*)$
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]

Go to Top