HTACCESS setEnv doesn't work for all servers |
If the server is running Apache then mod_env must be enabled for setEnv to work. I have run into cases where mod_env is not enabled in shared hosting setups.
The fix that has worked for me is to change the define in index.php to this. PHP Code: define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'production'); |
Welcome Guest, Not a member yet? Register Sign In |