Manage Multiple domains on the same TYPO3

 / Main / Articles / Controlling multiple domains in one Typo3 installation

There are two ways to manage multiple domains in one Typo3 installation. The first method is to create a RewriteRule in your .htaccess which tells the webserver to redirect requests on a specific domain to a specific page id / website tree. You can do that by putting the follwing code in your .htaccess

 

RewriteEngine on

RewriteCond %{HTTP_HOST} ^(www\.)?testdomain\.it$ [NC]

RewriteRule ^$ www.maindomain.it/index.php [R=301,L]

RewriteRule ^[^/]*\.html$ /index.php

 

The second and much better way to handle multiple domains in one Typo3 installation is to use Typo3 Domain Records. You create your page trees the usual way. Afterwards you create a domain record on each subtree for each domain. This way can you tell Typo3 which subtree is called on which domain.

 

Requirement to get this working is that DNS and Webserver are configured correctly for your Domains.

 

More information can be found on:

Quickstart - Controlling multiple domains

Using subdomains with Typo3



Comments


dalisse, 19-08-08 19:32:
Hello,
Thanks for this code. I think that it can help me because i cannot access Apache to my host.
?testdomain\\.it should be like ?www.domain1\\.it ?
And where should i add the Id of the page ?
Thanks for you help and you website
Bruno, 20-10-11 16:05:
Hi

I want to know if Typo3 can support multisites/multi databases and how many subsites can support, I mean, did you think that can support 225,000 sites???

Regards
Jamie, 30-03-12 11:10:
Hi,

I control mine through adding the lines below to a vhost.conf file.

ServerAlias mydomainname.com www.mydomainname.com
ServerAlias anotherone.com www.anotherone.com

I do this for Plesk, however I'm migrating to cPanel and don't know the proceedure for making mutlitple domains work.

Any help please…
J

Add comment

* - required field

*



*
*

Top 10 Updates

Useful Links geändert am  24-Apr-2013 06:31:20
Nice fonts using Google font API geändert am  20-May-2010 14:36:47
TS-based Searchbox for Indexed Search  geändert am  18-May-2010 16:27:15
TYPO3 SEO geändert am  30-Apr-2010 07:44:22
Search engine friendly graphical headers in TYPO3 geändert am  30-Apr-2010 07:33:44
Creating a simple Infocenter using TYPO3 geändert am  17-Nov-2009 11:12:52
Making the Section Menu work correctly with TemplaVoila geändert am  05-May-2009 10:27:17
Show pages with type "Not in Menu" in a sitemap geändert am  05-May-2009 10:11:17
Implementation of the DHTML menu from brainjar.com  geändert am  01-Feb-2009 13:02:48
Sample DHTML menu geändert am  01-Feb-2009 12:51:25

Latest comments

17-May-2013 10:09:34
Nicolas schrieb: If an extension or orther return a content empty, this solution not working. I not have the...
Wrap only if not empty
22-Apr-2013 12:08:26
morkel schrieb: hi i am new on typ03 and want to open a form on lightbox. when we click on image their a form will...
Using lightbox without extension
04-Mar-2013 13:33:47
Sebastian schrieb: Vergesse das immer wieder. Vielen Dank an dich und an Google :)
Wrap only if not empty
Deutsch
Search: