Index: branches/5.2.x/core/install/prerequisites.php =================================================================== diff -u -N -r15595 -r15620 --- branches/5.2.x/core/install/prerequisites.php (.../prerequisites.php) (revision 15595) +++ branches/5.2.x/core/install/prerequisites.php (.../prerequisites.php) (revision 15620) @@ -1,6 +1,6 @@ ='); - $ret['url_rewriting'] = function_exists('apache_get_modules') && in_array('mod_rewrite', apache_get_modules()); + + if ( function_exists('apache_get_modules') ) { + $mod_rewrite = in_array('mod_rewrite', apache_get_modules()); + } + else { + $mod_rewrite = getenv('HTTP_MOD_REWRITE') == 'On'; + } + + $ret['url_rewriting'] = $mod_rewrite; $ret['memcache'] = class_exists('Memcache'); $ret['curl'] = function_exists('curl_init'); $ret['simplexml'] = function_exists('simplexml_load_string'); Index: branches/5.2.x/.htaccess =================================================================== diff -u -N -r15129 -r15620 --- branches/5.2.x/.htaccess (.../.htaccess) (revision 15129) +++ branches/5.2.x/.htaccess (.../.htaccess) (revision 15620) @@ -19,48 +19,53 @@ ExpiresByType image/icon "access plus 1 month" -## Enable mod-rewrite -RewriteEngine On + + ## Tell PHP that the mod_rewrite module is ENABLED. + SetEnv HTTP_MOD_REWRITE On -###### Rewrite rule to force 'www.' prefix. Use only if needed -# If your site can be accessed both with and without the 'www.' prefix, -# use the following setting to redirect all users to access the site with the 'www.' -# when they access without 'www.'. Uncomment and MAKE sure to adapt for your domain name -# -# RewriteCond %{HTTP_HOST} ^example\.com$ [NC] -# RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301] + ## Enable mod-rewrite + RewriteEngine On -###### Rewrite rules to block common hacks -## If you experience problems comment out the operations listed below -## Block out any script trying to base64_encode crap to send via URL -RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR] -## Block out any script that includes a