Closed GoogleCodeExporter closed 8 years ago
I have just tested the patch I suggested in that thread, and works as expected
when installing in these 3 different server setups:
- mod rewrite supported, but apache_get_modules() not available -> .htaccess is
created
- apache_get_modules() available, mod_rewrite available -> .htaccess is created
- apache_get_modules() available, mod_rewrite NOT available -> .htaccess is NOT
created (remains as temp.htaccess)
Reminder - the patch is: admin/setup.php (around line 114), change:
# create root .htaccess file
if ( function_exists('apache_get_modules') ) {
if(in_arrayi('mod_rewrite',apache_get_modules())) {
...
}
}
to:
# create root .htaccess file
if ( !function_exists('apache_get_modules') or in_arrayi('mod_rewrite',apache_get_modules()) ) {
...
}
(Note that there were two if's and now it'd be only one, so you have to remove
one of the closing "}")
Original comment by carnav
on 21 Jan 2012 at 11:28
I've updated this fix in the SVN, tested and seems to be working fine,
Thanks...
Original comment by MichaelS...@gmail.com
on 24 Jan 2012 at 9:55
Original issue reported on code.google.com by
carnav
on 21 Jan 2012 at 8:29