Menü schliessen
Created: June 29th 2012
Last updated: May 1st 2020
Categories: Typo3
Author: Marcus Fleuti

Typo3 :: Various problems with baseURL and multiple domains - Font styles not loaded properly - 404 Errors etc.

Tags:  baseURL,  Typo3
Donation Section: Background
Monero Badge: QR-Code
Monero Badge: Logo Icon Donate with Monero Badge: Logo Text
82uymVXLkvVbB4c4JpTd1tYm1yj1cKPKR2wqmw3XF8YXKTmY7JrTriP4pVwp2EJYBnCFdXhLq4zfFA6ic7VAWCFX5wfQbCC

Typo3 :: Various problems with baseURL and multiple domains

When setting up the parameter

config.baseURL = http://example.org/

in Typo3 it might lead to some very weird problems on the page.

Solution

For this to solve simply configure the baseURL parameter based on the URL referrer:

TypoScript constants:

BASEURL = http://example.org/
[globalString = ENV:HTTP_HOST=dev.example.org]
BASEURL =
[globalString = ENV:HTTP_HOST=dev.example.org] AND [globalString =_SERVER|HTTPS=on]
BASEURL =
[global]

TypoScript setup:

config.baseURL = {$BASEURL}