On the 3rd of March last year (2012) 'roberto-butti' suggested using a server environment variable to control the value of CodeIgniter's ENVIRONMENT. The full discussion on the issue can be found at GitHub. And in June Phil Sturgeon added logic for this in index.php (see commit). By using Apache's SetEnvIf-directive...