Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: ahmet on December 01, 2012, 12:39:30

Title: migrate from aphrodite to nautilus..(SOLVED)
Post 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..
Title: Re: migrate from aphrodite to nautilus..
Post by: webgift on December 01, 2012, 13:42:09
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
Title: Re: migrate from aphrodite to nautilus..
Post by: ahmet on December 01, 2012, 18:44:19
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
Title: Re: migrate from aphrodite to nautilus..
Post by: datahell on December 01, 2012, 19:19:12
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:

Code: [Select]
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.'/';
}

Title: Re: migrate from aphrodite to nautilus..
Post by: ahmet on December 01, 2012, 20:18:58
thank u..
Is this modification enough??
Title: Re: migrate from aphrodite to nautilus..
Post by: ahmet on December 27, 2012, 10:45:49
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.'/';
}
Title: Re: migrate from aphrodite to nautilus..
Post by: datahell on December 27, 2012, 19:16:35
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.
Title: Re: migrate from aphrodite to nautilus..
Post by: ahmet on December 28, 2012, 20:31:39
thanks,
i've got it..