At this point we are assuming that you have already created the first website in typo3 backend. In the page tree structure copy the current website and paste it after the current website. Now you should have 2 websites in your page tree structure.
In cPanel add the other domain names under the main domain name as a Addon domain. It needs to be a addon domain to be able to implement SSL. Please note that this would not work if it is a Park Domain. Purchase the SSL for your domains.
Then adding the addon domain do not create a new directory for the addon domain in public_html. The path should be to public_html.
Open the localconf.php file for Typo3.
Just before the real-url configuration create an array with the domain that you have added. We’ll need to add the domain with www and without www. The value of the key is the page id of the root page for the website in Typo3 backend.
$RootPID = array(
'www.example.com' => '1',
'example.com' => '1',
'www.information.com' => '91',
' information.com' => '91' );
In the real-url configuration we’ll need to add the array that we have create above.
'pagePath' => array (
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L', 'expireDays' => '7', 'rootpage_id' => $RootPID[$_SERVER['HTTP_HOST']] ),
Note that this step needs to be done for each of the websites in Typo3 page tree structure. Then in list mode click on the root page for the first website. Then click on new record button at the top of the page. Choose add a domain. You’ll need to do this twice for each domain to add the domain with www and without www. Example: www.example.com example.com
This should all be setup now.
If you like this article, and especially if it has helped solved a problem for you, we would be grateful if you can either share this article, like this article, or link to this page so that others may enjoy this too.