Is it possible to set a SetEnv variable in an .htaccess file differently depending on hostname?
For example, I need my .htaccess
file to have the following value:
SetEnv PYRO_ENV production
On production boxes, and...
SetEnv PYRO_ENV stage
On staging boxes. The .htaccess
file is version controlled, which is the reason I'm looking for a conditional solution.
SetEnvIf Host \.de MAGE_RUN_CODE=de
(in our case we have internal and external URLs:example.de
as well asexample.de.testing.local
) - so this works for both. – Cavity