[TYPO3-english] config.baseURL match

Thomas "Thasmo" Deinhamer thasmo at gmail.com
Wed Jul 7 20:23:21 CEST 2010


Sergio wrote:
> Hi list,
>
> I would like to simplify my realurl TS config. Example:
>
> [globalString = IENV:HTTP_HOST=test1.com]
>    config.baseURL = http://test1.com/subdomain/
>
> [globalString = IENV:HTTP_HOST=test1.com]
>    config.baseURL = http://test2.com/subdomain/
> [end]
>
> I would like to convert this code into:
>
> [globalString = IENV:HTTP_HOST=test*]
>    config.baseURL = {IENV:HTTP_HOST}/subdomain/
> [end]
>
> But I can't get it: is there a way I can use HTTP_HOST variable in the right
> part of "config.baseURL"?

You may use config.absRefPrefix = / instead of baseUrl.

Thomas


More information about the TYPO3-english mailing list