Welcome Guest, Not a member yet? Register   Sign In
HTACCESS setEnv doesn't work for all servers
#9

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'); 
Reply


Messages In This Thread
RE: HTACCESS setEnv doesn't work for all servers - by dave friend - 05-26-2017, 05:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB