[TYPO3-team-core-v5] Getting rid of index_dev.php - please give feedback

Ernesto Baschny [cron IT] ernst at cron-it.de
Thu Feb 26 22:47:45 CET 2009


Karsten Dambekalns wrote: on 25.02.2009 11:51:

> Apache - not really a problem
> 
> The line
>  SetEnvIf Request_URI "^/index_dev\.php" FLOW3_CONTEXT=Development
> sets the variable, it is passed through as REDIRECT_FLOW3_CONTEXT in the
> following URL rewriting. Cool.
>
> (...)
> Question: Is there a more elegant way of embedding the context in the URL?
> Task: Keep the context in URL generated by FLOW3.

Yes, I would SetEnvIf the variable if the request Host is
"test.<domain>", so that "index.php" always stays the same, but I use
different (sub)domains:

SetEnvIf Host test\.* FLOW3_CONTEXT=Development

This way I could have a different VirtualHost for this domain with
different requirements (e.g. allowing only access to it only from
certain IPs, etc).

But as you put it in your other post, "no more magic", everyone has to
find its own magic to set the environment. Some ideas on how to do this
in the documentation would be nice, of course.

Cheers,
Ernesto


More information about the TYPO3-team-core-v5 mailing list