How to set 404 error handlers for multi-domain web-sites in Typo3


Multiple 404 error handlers for multi-domain web-sites + typo3

Its very important for multiple domain to set diffrent 404 error handlers

you can set following script in your local configuration


$TYPO3_CONF_VARS["FE"]["pageNotFound_handling_statheader"] = 'HTTP/1.1 404 Not Found';

if ($_SERVER['HTTP_HOST'] == 'www.jainishsenjaliya.com') {
     $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'REDIRECT:http://jainishsenjaliya.com/404.html';
}
else {
     $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'REDIRECT:http://m.jainishsenjaliya.com/404.html';
}

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

How to set multiple domains and languages in TYPO3


 

TYPO3 multi language & multi domain site with RealURL and language menu

To divert the German language on the .De domain is set as far as the standard in TYPO3. Now but if you have a .com domain and it is desired to convert this directly to the English language,
you must use the following TypoScript code: TypoScript setup of the template:

config {
        baseURL = http://www.YOUR_DOMAIN.de/
        sys_language_uid = 0
        language = de
    	locale_all = de_DE
    	htmlTag_langKey = de-DE
}

[globalVar = GP:L = 1] || [global string = ENV: HTTP_HOST = http://www.YOUR_DOMAIN.com/]
    config {
        baseURL = http://www.YOUR_DOMAIN.com/
        sys_language_uid = 1
        language = en
        locale_all = en_US
        htmlTag_langKey = en-US
    }
[end]

RealURL Setup : You can set below script in “realurl_conf.php”

At first, the selected domain inherits the default setup:

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.YOUR_DOMAIN.de'] = $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'];

Then, you have to configure the rootpage_id:

$TYPO3_CONF_VARS['EXTCONF']['realurl']['www.YOUR_DOMAIN.de']['pagePath']['rootpage_id'] = 1;

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DOMAINS'] = array(
        'encode' => array(
                array(
                        'GETvar' => 'L',
                        'value' => '0',
                        'useConfiguration' => 'www.YOUR_DOMAIN.de',
                        'urlPrepend' => 'http://www.YOUR_DOMAIN.de'
                ),
                array(
                        'GETvar' => 'L',
                        'value' => '1',
                        'useConfiguration' => 'www.YOUR_DOMAIN.com/',
                        'urlPrepend' => 'http://www.YOUR_DOMAIN.com/'
                ),
                
        ),
        'decode' => array(
                'www.YOUR_DOMAIN.de' => array(
                        'GETvars' => array(
                                'L' => '0',
                        ),
                        'useConfiguration' => 'www.YOUR_DOMAIN.de'
                ),
                'www.YOUR_DOMAIN.com' => array(
                        'GETvars' => array(
                                'L' => '1',
                        ),
                        'useConfiguration' => 'www.YOUR_DOMAIN.com'
                ),
        )
);

This will definitely guide you.
If you have any query regarding multidomain then feel free to contact me at Jainish Senjaliya