ToyRobotic ToyRobotic - 2 months ago 26
Apache Configuration Question

TYPO3: Setting Development via .htaccess

My

TYPO3_CONTEXT
didn't work well.
I tried enabled the development mode in
.htaccess
as follows:

SetEnv TYPO3_CONTEXT Development


Even after clearing the caches, I still get under Application Context: Production.

Has anyone an idea?

Answer

Here is my solution, if mod_env isn't available for you. Put the following snippet in your index.php before call_user_function() ...

if($_SERVER['SERVER_NAME'] == 'example.com') {
   putenv('TYPO3_CONTEXT=Development');
}