Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: ahmet on December 01, 2012, 12:39:30
-
hello all,
I will have more than 2 websites, so i would like to have multisite (which nautilus has) ..
Is there a step by step instruction to carry the database and etc.. thanks..
-
I can't get your question at all! However i attach you an article about Multisites on Elxis Documentation website: https://www.elxis.net/docs/using-elxis/administration/multisites.html
-
tnx webgift,
i ve already read the article.. i am asking
1-how i will carry my old elxis site to nautilus
2-cant i use www.com ddddd.com (bot subdomains) for multisite..
ahmet
-
1. Update is not officially supported so we will never publish such information even if it was possible to move Elxis 2009.x database to a to 4.x database.
2. You can add re-write rules for apache inorder your sub-domains to work, but Elxis will still use the sub-folder urls. So after the first click the user will be switched back to the sub-folder style urls. To change this you must modify a little the makeURL method of the elxisUri library.
uri.class.php, line 404:
$url = ($forcessl) ? $this->site_url_ssl_force.'/' : $this->site_url.'/';
You can change the above to something like that:
if (defined('ELXIS_MULTISITE')) {
if (ELXIS_MULTISITE == 2) {
$url = 'http://second.example.com/';
} else if (ELXIS_MULTISITE == 3) {
$url = 'http://third.example.com/';
} else {
$url = ($forcessl) ? $this->site_url_ssl_force.'/' : $this->site_url.'/';
}
} else {
$url = ($forcessl) ? $this->site_url_ssl_force.'/' : $this->site_url.'/';
}
-
thank u..
Is this modification enough??
-
hello all,
I wanna use bodrumgrace.com as main, bodrumkilise.com as subsite
when i click language icon , the language will be changed..
Is that info what datahell wrote is enough or have i to do sth more??
if (defined('ELXIS_MULTISITE')) {
if (ELXIS_MULTISITE == 2) {
$url = 'http://second.example.com/';
} else if (ELXIS_MULTISITE == 3) {
$url = 'http://third.example.com/';
} else {
$url = ($forcessl) ? $this->site_url_ssl_force.'/' : $this->site_url.'/';
}
} else {
$url = ($forcessl) ? $this->site_url_ssl_force.'/' : $this->site_url.'/';
}
-
You can do so with some changes BUT multi-sites were designed to run under the same domain, this is the idea: having multiple sites under 1 domain without having to re-install Elxis.
Using different domains is outside the scope of multi-sites, not just for Elxis but in general.
If you want to have Elxis in 2 or more domains then install Elxis 2 or more times, don't use multi-sites.
-
thanks,
i've got it..