Could we help you? Please click the banners. We are young and desperately need the money
Sometimes there are multiple webs configured in a single Typo3 instance using multiple page trees and root IDs. This solution describes how to configure the RealURL extension properly to work with multiple page trees.
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']['pagePath']['rootpage_id'] = 1; //the root pages ID $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']; $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain2.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']; $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain2.de']['pagePath']['rootpage_id'] = 2; //overwrite root page ID with the one for this specific domain $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain3.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT']; $TYPO3_CONF_VARS['EXTCONF']['realurl']['www.domain3.de']['pagePath']['rootpage_id'] = 3;