[TYPO3-english] Multiple 404 error handlers for multi-domain web-sites

Dmitry Dulepov dmitry at typo3.org
Mon Feb 9 20:57:17 CET 2009


Victor Livakovsky wrote:
> I have 3 domains in my web and I need individual error page (with
> sitemap) for each domain, but I can specify only one value here:
> $TYPO3_CONF_VARS['FE']['pageNotFound_handling']

if ($_SERVER['HTTP_HOST'] == 'www.example.com') {
	$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'READFILE:/404-v1.html';
else {
	$TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'READFILE:/404-v2.html';

Dmitry Dulepov
TYPO3 core team
"Sometimes they go bad. No one knows why" (Cameron, TSCC, "Dungeons&Dragons")

More information about the TYPO3-english mailing list