title: Not getting value in $_SERVER from SetEnv variable in htaccess
body: <p>I have set some variables in .htaccess file with <strong>SetEnv</strong> but it's not getting by php file using <strong>$_SERVER</strong>.</p>
  
  <p>Here is the code of htaccess:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond $1 !^(index\.php|resources|robots\.txt)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
  AddDefaultCharset utf-8
  
  # Enviroment variables; change these to match server configurations
  SetEnv ENVIRONMENT development
  SetEnv APP_DB_HOSTNAME localhost
  SetEnv APP_DB_USERNAME root
  SetEnv APP_DB_PASSWORD root
  SetEnv APP_DB_NAME root_pro
  SetEnv APP_ENC_KEY xxxxx-xxx-xxx
  </code></pre>
  
  <p>But I didn't got the value in <strong>$_SERVER['ENVIRONMENT']</strong>. Please give advice on it please.</p>
  
  <p><strong>Note</strong>: This is not working in my live server and there is already <strong>mod_env</strong> already enabled.</p>
  
  <p>Thank you in advance.</p>