From fefd00cf1e44204280c86e69dc7cbdcb758a1da6 Mon Sep 17 00:00:00 2001 From: sharvey Date: Sat, 13 Feb 2010 03:55:47 +0000 Subject: [PATCH] BUGFIX If mod_rewrite isn't enabled on Apache, a 500 server error won't be generated which prevents the installer from opening and telling you there's no rewrite support git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.4@98887 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- .htaccess | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/.htaccess b/.htaccess index 6421293..be29731 100644 --- a/.htaccess +++ b/.htaccess @@ -1,18 +1,14 @@ ### SILVERSTRIPE START ### - Order deny,allow - Deny from all - Allow from 127.0.0.1 +Order deny,allow +Deny from all +Allow from 127.0.0.1 - - Order deny,allow - Deny from all - - -RewriteEngine On - -RewriteCond %{REQUEST_URI} ^(.*)$ -RewriteCond %{REQUEST_FILENAME} !-f -RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L] -### SILVERSTRIPE END ### \ No newline at end of file + + RewriteEngine On + RewriteCond %{REQUEST_URI} ^(.*)$ + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L] + +### SILVERSTRIPE END ###