Re: MultiSite Module Support Thread
Quote:
Originally Posted by
TheDruid
I should do next,:dontgetit
Read through the previous pages! As the answers are there!
Yes there are alot of pages, but you will learn alot more about how this modules works by reading the previous post, rather than reiterating the same as someone else!
http://www.zen-cart.com/forum/showth...i+site&page=26
Re: MultiSite Module Support Thread
Hi, Thank you for the tip, I had read most of the forum, but I guess I must have missed that part. Unfortunately it doesn't seem to have worked. See I had already created the file, and placed the following code into it (edited with the appropriate name):
"<?php
$template_dir = "site1";
define('SITE_NAME','site1');
?>"
I did notice just now that the example config file has a few more lines of code which were not mentioned in the multi-site instructions http://www.medea.co.uk/dev/multisite...tions_0.4.html T
he code in the example is:
"<?php
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
$template_dir = "example";
define('SITE_NAME','example');
?>
However after adding in these other lines I'm still getting the same "does not exist"message. Is there more to a config file than this? what am I missing? do i have to do something to the
"define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');"
lines?
Re: MultiSite Module Support Thread
You should need to alter those defines. What is the name of your config file that contains your defines? And have you done the thing with the template system, rename each according to your site names.
Heathenmagic
Re: MultiSite Module Support Thread
the config file is called www.eatideal.com_config.php
and if it helps,
The template file is called: EatIdeal_com
and the contents of the config file are: <?php
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
$template_dir = "EatIdeal_com";
define('SITE_NAME','EatIdeal.com');
?>
Re: MultiSite Module Support Thread
Hi, I just found this:
Quote:
Originally Posted by
Gerome
streetglow,
define('DIR_WS_CATALOG','/retailer/');
define('DIR_WS_HTTPS_CATALOG','/retailer/');
Gerome.
and so I tried using "/Shop/" in my config file (which is where my ZC is installed) but it didnt seem to change anything. what am I still missing?
Re: MultiSite Module Support Thread
I was trying to see if this would help:
Quote:
Originally Posted by
Gerome
But I didn't really understand the finer point on how to tailor it to my site.
Re: MultiSite Module Support Thread
So, I realized that because I'm on shared hosting this might be the problem, but when I tried to implement it there were no noticeable changes
Quote:
Originally Posted by
Gerome
SSL can be an issue, especially if you use the same IP for all your domain because SSL need an unique IP for each domains. It means that your server setting has to even more complicated...
Another solution can be to use common DNS for all the SLLs and to use a different subfolder in order to change them.
As for the MultiSite configuration, it requires a bit of extra code.
Just take the case of the use of
www.secure-payment.com as DNS ...
includes/config_sites/www.secure-payment.com_config.php has to contain:
Code:
<?php
$location = explode('/',$_SERVER['REQUEST_URI']);
switch($location[1]) {
case 'site1':
include('includes/config_sites/www.site1.com_config.php');
break;
case 'site2':
include('includes/config_sites/www.site2.com_config.php');
break;
case 'site3':
include('includes/config_sites/www.site3.com_config.php');
break;
}
unset($location);
?>
Then in the config files of each site, you have to write:
Code:
define('DIR_WS_HTTPS_CATALOG','/site1/');
define('HTTPS_SERVER', "https://www.secure-payment.com");
Code to add in the beginning of .htaccess:
Code:
RewriteCond %{HTTP_HOST} ^www.secure-payment.com$
RewriteRule ^site1/(.*)$ /zencart_folder/$1 [L]
RewriteCond %{HTTP_HOST} ^www.secure-payment.com$
RewriteRule ^site2/(.*)$ /zencart_folder/$1 [L]
This will make the SLL of all your sites like:
https://www.secure-payment.com/site1/
https://www.secure-payment.com/site2/
I used one of my two DNSs but I still dont even know if this is the problem. Any clues?
Re: MultiSite Module Support Thread
OK, Its official. I have read this entire thread from start to finish, and I didn't do any scanning this time. I tried everything that seemed like it might have something to do with it, some of it was a little beyond my current understanding:huh:, but basically nothing changed my results.:yuck: I simply cant dial into my catalog using any domain or directory combo, Period. :frusty::lamo::no::cry:
Re: MultiSite Module Support Forum
Hi all you multisiters!
I am trying to set my new site with the "Multisite" module, was going quite well until I hit Step 4, headed "Create the config files of your sites".
The very first instruction under Step 4 says to add a line of text to "includes/configure.php". Ehen I do this I get a 'fatal error or timed out...' and wont save the line of text.
Now I presume I'm using the right configure.php file (mystore/includes/configure.php)?
What am I doing wrong at this point, as I cant get past this step?
Would appreciate help if possible.
Dave
where to upload www.site1.com_config.php
On step 4 where exactly am I supposed to upload www.site1.com_config.php to? the site1.com html folder or a folder on the main sites area?
Thanks