1. What is Multidomain?
Multidomain is a multiple domains plugin for IncPlugins.
2. Multidomain installation
Download the latest Multidomain release. It comes with IncPlugins Pro. Unzip it to any temporary directory. Copy multidomain.php to your IncPlugins directory.
To use it you must add this line to the begin of all your settings.php files:
include_once $inc_dir.'multidomain.php'; if ($inc_break) return;
Copy your renamed another domain settings file (file name instructions see below).
Copy your another domain files. The same name files must be renamed (instructions are below).
3. Using Multidomain
3.1. Principles
Multidomain uses Apache HTTP_HOST variable then checks file names and selects a right version of the page.
It also selects a right version of IncPlugins settings file.
3.2. Using Multidomain
To use multidomain your pages should have special form:
<file name>.<domain name>.<file extension>
Examples:
index.www.site.com.php index.mydomain.net.php index.site.org.de.php
If domain name has www. prefix, this version will be used for www.domain.com version, but domain.com will not be used.
If your file name has no domain name part, this file is “for all domains”.
For example, for three domains create these files in the same directory:
- page.html — for www.domain.com, domain.com and domain3.com
- page.domain2.com.html — for www.dowain2.com and domain2.com
- page.www.domain3.com.html — for www.domain3.com
IncPlugins will automatically send a right version to the web browser, when a visitor visit the page.html file.
Of cource, you may not rename your file if it is not available in another domains.
You can also create different versions of settings file settings.php, so your different domain versions will use different set of plugins:
- settings.php — for www.domain.com, domain.com and domain3.com
- settings.domain2.com.php — for www.dowain2.com and domain2.com
- settings.www.domain3.com.php — for www.domain3.com
4. Using Limitations
You cannot use multidomain plugin, if your pages contain settings change over INC constant.

