diff --git a/.htaccess b/.htaccess index 7b0da46..81ef22c 100644 --- a/.htaccess +++ b/.htaccess @@ -18,7 +18,9 @@ ErrorDocument 500 /assets/error-500.html + SetEnv HTTP_MOD_REWRITE On RewriteEngine On + RewriteCond %{REQUEST_URI} ^(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L] diff --git a/install.php b/install.php index 02876dc..6c459c5 100644 --- a/install.php +++ b/install.php @@ -645,6 +645,8 @@ class InstallRequirements { function testApacheRewriteExists($moduleName = 'mod_rewrite') { if(function_exists('apache_get_modules') && in_array($moduleName, apache_get_modules())) { return true; + } elseif(isset($_SERVER['HTTP_MOD_REWRITE']) && $_SERVER['HTTP_MOD_REWRITE'] == 'On') { + return true; } else { return false; }