Browse files

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 (from r98887)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/trunk@112108 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 4997c0a commit 044b0f0f8093f51c70c01dfc5879ace95c4008cc sminnee committed Oct 13, 2010
Showing with 7 additions and 6 deletions.
  1. +7 −6 .htaccess
View
13 .htaccess
@@ -10,9 +10,10 @@
Deny from all
</Files>
-RewriteEngine On
-
-RewriteCond %{REQUEST_URI} ^(.*)$
-RewriteCond %{REQUEST_FILENAME} !-f
-RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
-### SILVERSTRIPE END ###
+<IfModule mod_rewrite.c>
+ RewriteEngine On
+ RewriteCond %{REQUEST_URI} ^(.*)$
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
+</IfModule>
+### SILVERSTRIPE END ###

0 comments on commit 044b0f0

Please sign in to comment.