[TYPO3-english] Re: Application Context
Florian Rival
florian.typo3 at oktopuce.fr
Wed Feb 11 18:01:01 CET 2015
The right configuration is like that in .htaccess (code from typo3 src) :
# Rules to set ApplicationContext based on hostname
RewriteCond %{HTTP_HOST} ^dev\.example\.com$
RewriteRule .? - [E=TYPO3_CONTEXT:Development]
RewriteCond %{HTTP_HOST} ^staging\.example\.com$
RewriteRule .? - [E=TYPO3_CONTEXT:Production/Staging]
RewriteCond %{HTTP_HOST} ^www\.leucate\.fr$
RewriteRule .? - [E=TYPO3_CONTEXT:Development]
But in my environement that doesn't work, I had to add it in the apache configuration like this :
SetEnv TYPO3_CONTEXT Development
reload apache and it's ok.
Regards,
Florian
More information about the TYPO3-english
mailing list