How to get APPLICATION_ENV and other custom variables in .htaccess file?
$_SERVER:
[
'HTTP_HOST' => 'xx.example.com'
'HTTP_X_GATE_HOST' => 'xx.entrance.com'
'APPLICATION_ENV' => 'development'
]
This works fine:
RewriteCond %{HTTP_HOST} xx.example.com
RewriteRule ^.*$ /index-dev.php [NC,L]
But:
RewriteCond %{APPLICATION_ENV} development
RewriteRule ^.*$ /index-dev.php [NC,L]
just won't work.
RewriteCond %{ENV:APPLICATION_ENV} development
RewriteRule ^.*$ /index-dev.php [NC,L]
This won't work neither... Please help :|