[TYPO3-english] RealUrl problem
Michael Cannon
michael at typo3vagabond.com
Fri Jul 20 15:23:06 CEST 2012
Marko,
Try something like…
--
$TYPO3_CONF_VARS['EXTCONF']['realurl'] = array(
'_DEFAULT' => $realurlConfig,
// only useful for simple domain setups
$_SERVER['HTTP_HOST'] => $realurlConfig,
'www.example.com <http://subdomain1.example.com/>' =>
$realurlConfig,
'subdomain1.example.com' => $realurlConfig,
'subdomain2.example.com <http://subdomain1.example.com/>' =>
$realurlConfig,
);
unset($realurlConfig);
$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.example.com<http://subdomain1.example.com/>']['pagePath']['rootpage_id']
= 1;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['subdomain1.example.com']['pagePath']['rootpage_id']
= 2;
$TYPO3_CONF_VARS['EXTCONF']['realurl']['subdomain1.example.com']['pagePath']['rootpage_id']
= 3;
--
Somebody will problem complain about my usage of _DEFAULT, but I've learned
that not everyone accounts for the domains used with their website.
Therefore, I have it as a default of realurl configuration.
See https://gist.github.com/3150693 for more.
Ciao!
Michael
--
Michael Cannon
The TYPO3 Vagabond <http://typo3vagabond.com/> • Develop Yourself, Code Too!
Germany +49 (0)160 574 1973 • US +1 617 539 6072 • Skype comprock
Lifestyl.us <http://lifestyl.us/> • healthy passionate living
More information about the TYPO3-english
mailing list