Hello,
I had a problem with my installation :
- SilverStripe 2.3.4
- installation directory : /var/www/my directory/silverstripe-2.3.4/
The problem was that "install.php" created a .htaccess file with this directive :
RewriteBase /my directory/silverstripe-2.3.4/
But, spaces in the url (like in "my directory") isn't supported.
To resolve the problem, i've changed by :
RewriteBase /my%20directory/silverstripe-2.3.4/
If you want, there is the modification to add in the install.php file (in the function createHtaccess, line 875) :
867: function createHtaccess() {
868: $start = "### SILVERSTRIPE START ###\n";
869: $end = "\n### SILVERSTRIPE END ###";
870:
871: $base = dirname($_SERVER['SCRIPT_NAME']);
872: if(defined('DIRECTORY_SEPARATOR')) $base = str_replace(DIRECTORY_SEPARATOR, '/', $base);
873: else $base = str_replace("\\", '/', $base);
874:
====> 875: $base = str_replace(' ', '%20', $base);
876:
877: if($base != '.') $baseClause = "RewriteBase $base\n";
878: else $baseClause = "";