[TYPO3-v4] translateable 404 error page with realurl

François Suter fsu-lists at cobweb.ch
Tue Dec 6 11:49:35 CET 2011


Hi,

> nobody has an idea?

I use the following (in localconf), which is not very nice but works:

     // Set error page for multilingual site
if (preg_match('/^\/en\//', $_SERVER['REQUEST_URI'])) {
     $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 
'/en/page-not-found/';
} elseif (preg_match('/^\/de\//', $_SERVER['REQUEST_URI'])) {
     $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 
'/de/seite-nicht-gefunden/';
} else { // Default language
     $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = '/page-introuvable/';
}

There's also extension "error_404_multilingual", but I haven't tried it 
and I don't know how it does its trick.

HTH

-- 

Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch


More information about the TYPO3-project-v4 mailing list