### SILVERSTRIPE START ###
RewriteEngine On
RewriteBase /
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]
### SILVERSTRIPE END ###
Please also make the following edits/changes to the Silverstripe Files (I've tested this with the current release version 2.2.3
note these changes can be made AFTER installing Silverstripe if you wish.
Edit /sapphire/core/control/Director.php file and change
$s = (isset($_SERVER['SSL']) || isset($_SERVER['HTTPS'])) ? 's' : ";
line to
$s = (isset($_SERVER['SSL']) || (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')) ? 's' : ";
Edit /sapphire/main.php file and at the very beginning add these lines:
if (!isset($_SERVER['REQUEST_URI'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
}
Edit /sapphire/main.php file and change
// Check we have at least 32M
if($memory < (32 * 1024 * 1024)) {
// Increase memory limit
ini_set('memory_limit', '32M');
}
To
// Check we have at least 64M
if($memory < (64 * 1024 * 1024)) {
// Increase memory limit
ini_set('memory_limit', '64M');
}
Finally please ensure you create a directory in the root of your website (if not already created by the installer) called silverstripe-cache

Sign In
Register
Help
MultiQuote