Skip to content

Instantly share code, notes, and snippets.

@ABooooo
Created June 18, 2015 14:53
Show Gist options
  • Save ABooooo/8b2fb4f875c56307a608 to your computer and use it in GitHub Desktop.
Save ABooooo/8b2fb4f875c56307a608 to your computer and use it in GitHub Desktop.
BaseURL per TypoScript dynamisch setzen
CONSTANTS:
protocol = http
[globalString = IENV:TYPO3_SSL=1]
protocol = https
[global]
host = domain.com
[globalString = IENV:HTTP_HOST=www.domain.de]
host = www.domain.de
[globalString = IENV:HTTP_HOST=seconddomain.de]
host = seconddomain.de
[globalString = IENV:HTTP_HOST=www.seconddomain.de]
host = www.seconddomain.de
[global]
SETUP:
config.baseURL= {$protocol}://{$host}/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment