Closed Knappster closed 6 years ago
@Knappster isn't that var just set by the .htaccess: https://github.com/octobercms/install/blob/master/.htaccess#L3. Why would it change in CGI/FastCGI environments?
When using PHP as a CGI binary instead of a module, environment variables set by Apache are prefixed with 'REDIRECT_'.
I first ran into this issue using MAMP when configured to run different versions of PHP for each host. The check for mod_rewrite would always fail.
The same issue occurred on a shared hosting server we have, also configured to run different versions of PHP for each host.
'HTTP_MOD_REWRITE' key is renamed to 'REDIRECT_HTTP_MOD_REWRITE' in CGI/FastCGI environments.