Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] Root .htaccess not created when installing (on some servers)
#4
Sorry Chris, there's an error. It should be without the second !:
Code:
# create root .htaccess file
        if ( !function_exists('apache_get_modules') or in_arrayi('mod_rewrite',apache_get_modules()) ) {
            ...
        }

This way, if GS cannot check for mod_rewrite support OR detects it IS supported, it creates (renames) the .htaccess file
If it can detect it is NOT supported (which is the case where there is a problem), it doesn't create it.

This behaviour wouldn't be very different from what GS 3.0 (and older) did. The .htaccess file seems not do any harm in most cases.
Reply


Messages In This Thread
[SOLVED] Root .htaccess not created when installing (on some servers) - by Carlos - 2012-01-17, 01:30:15



Users browsing this thread: 1 Guest(s)