[TYPO3] New 404 page on multilingual sites

Tomas Mrozek mail at cascaval.com
Tue Nov 21 16:54:33 CET 2006


Thank you for pointing that out.
I actually tried the first proposed solution myself before posting my
question and didn't work for me.

Well, the corrected version does work so I'm posting it here again in
case someone runs into this issue too.

localconf.php:
---------------------------------------------------------------
if (preg_match('/^\/en\//', $_SERVER["REQUEST_URI"])) {
  $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = '/en/404/';
}
else if (preg_match('/^\/de\//', $_SERVER["REQUEST_URI"])) {
  $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = '/de/404/';
}
else {
  $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = '/404/';
}
---------------------------------------------------------------

Tomas Mrozek



More information about the TYPO3-english mailing list