Zen Cart Logo
Forums / All Other Contributions/Addons / MultiSite Mod & Sub-Folders vs Subdomains

MultiSite Mod & Sub-Folders vs Subdomains

Locked

Views: 4,678

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
5 Nov 2009, 1:39 AM
#1
roylen1 avatar

roylen1

New Zenner

Join Date:
May 2009
Posts:
38
Plugin Contributions:
0

MultiSite Mod & Sub-Folders vs Subdomains

I have modified sites_switch.php in the multisite module addon to allow it to work woith either subdomain or sub folders.

usage

  • for subdomains: name the site config file as shown in the posted directions ie subdomainname_config.php eg london.tickets.com_config.php
  • for sub-folders: name the site config file domainname_subfoldername_config.php eg tickets_london_config.php

This patch will ignore the subdomain config file if a subfolder config file exists.

I'm new to this stuff so use at your own risk and as they say around here, backup 1st.

5 Nov 2009, 1:40 AM
#2
roylen1 avatar

roylen1

New Zenner

Join Date:
May 2009
Posts:
38
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

Attaching file

5 Feb 2010, 8:11 PM
#4
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

How do I get my get this subdomain or subfolder to work:

marchforbabies.morrisgiftshop.biz

here is a sample of the config file:

<?php $template_dir = "2fast_shoes"; define('SITE_NAME','Shoes'); define('HTTP_SERVER', 'http://www.2fastshoes.com'); define('HTTPS_SERVER', 'https://shoes.2fastonline.com'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site ?>

How can I get going?

5 Feb 2010, 8:15 PM
#5
roylen1 avatar

roylen1

New Zenner

Join Date:
May 2009
Posts:
38
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

Install as per the original multisite instructions. once the install is completed replace the siteswitc and the sitelink files with the ones I changed above and rename the site config files as stated above

5 Feb 2010, 8:16 PM
#6
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

roylen1:

Install as per the original multisite instructions. once the install is completed replace the siteswitc and the sitelink files with the ones I changed above and rename the site config files as stated above

I am totally confused I have install everything

I have change this and see if I got this currect:

<?php $template_dir = "example"; define('SITE_NAME','marchforbabies'); define('HTTP_SERVER', 'http://marchforbabies.morrisgiftshop.biz'); define('HTTPS_SERVER', 'https://marchforbabies.morrisgiftshop.biz'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site ?>

if it is how do safe the file?

5 Feb 2010, 8:30 PM
#7
roylen1 avatar

roylen1

New Zenner

Join Date:
May 2009
Posts:
38
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

OK the mod here is to be used for **subfolders only **ie "morrisgiftshop.biz/marchforbabies"

If you are using subdomains "marchforbabies.morrisgiftshop.biz" do **NOT **use this mod.

5 Feb 2010, 8:34 PM
#8
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

roylen1:

OK the mod here is to be used for **subfolders only **ie "morrisgiftshop.biz/marchforbabies"

If you are using subdomains "marchforbabies.morrisgiftshop.biz" do **NOT **use this mod.

I can do the subfolder

so I need to change this:

<?php $template_dir = "example"; define('SITE_NAME','marchforbabies'); define('HTTP_SERVER', 'http://marchforbabies.morrisgiftshop.biz'); define('HTTPS_SERVER', 'https://marchforbabies.morrisgiftshop.biz'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site to this: <?php $template_dir = "example"; define('SITE_NAME','marchforbabies'); define('HTTP_SERVER', 'http://www.morrisgiftshop.biz/marchforbabies'); define('HTTPS_SERVER', 'https://www.morrisgiftshop.biz/marchforbabies'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site ?>
5 Feb 2010, 8:44 PM
#9
roylen1 avatar

roylen1

New Zenner

Join Date:
May 2009
Posts:
38
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

<?php $template_dir = "example"; define('SITE_NAME','marchforbabies'); define('HTTP_SERVER', 'http://www.morrisgiftshop.biz'); define('HTTPS_SERVER', 'https://www.morrisgiftshop.biz'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site ?>
5 Feb 2010, 8:47 PM
#10
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

roylen1:

<?php $template_dir = "example"; define('SITE_NAME','marchforbabies'); define('HTTP_SERVER', 'http://www.morrisgiftshop.biz'); define('HTTPS_SERVER', 'https://www.morrisgiftshop.biz'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site ?>

Is that what I need to put in and save file as morrisgiftshop.biz_marchforbabies_config.php?

5 Feb 2010, 8:58 PM
#11
roylen1 avatar

roylen1

New Zenner

Join Date:
May 2009
Posts:
38
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

Yes that is it (but I do not think you need the www i did not include www for my site.)
if 'http://morrisgiftshop.biz' resolves to your site then you should remove the www. i don't think i accounted for www in this mod

5 Feb 2010, 9:01 PM
#12
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

Do you have a couple links from your site I can take a look at?

5 Feb 2010, 9:12 PM
#13
roylen1 avatar

roylen1

New Zenner

Join Date:
May 2009
Posts:
38
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

Unfortunately I cannot post the link based on signed agreements. would make things a whole lot easier.
What exactly are you looking for via the link?

5 Feb 2010, 9:14 PM
#14
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

Because I want to see if that is what I am wanting to do on my site.

Plus I have a second site to test it with at https://www.mgs-test.com and each links goes to morrisgiftshop.biz why does it do that?

5 Feb 2010, 9:35 PM
#15
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

I did everything and if you go to http://morrisgiftshop.biz/marchforbabies/ its say "Page not Found"

what am I doing wrong

5 Feb 2010, 10:05 PM
#16
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

Ok I have made a file of morrisgiftshop.biz_marchforbabies_config.php

<?php $template_dir = "example"; define('SITE_NAME','marchforbabies'); define('HTTP_SERVER', 'http://morrisgiftshop.biz'); define('HTTPS_SERVER', 'https://morrisgiftshop.biz'); define('CATEGORIES_ROOT','1'); //root categories is 1 for this site ?>

And nothing comes up. all it says "Page Not Found"

6 Feb 2010, 12:12 AM
#17
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

I guess no help then

6 Feb 2010, 6:26 PM
#18
wmorris avatar

wmorris

Totally Zenned

Join Date:
Aug 2007
Location:
Amarillo, Tx
Posts:
1,683
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

Roylen,

Can you able to help me?

Thanks.

8 Feb 2010, 10:32 PM
#19
roylen1 avatar

roylen1

New Zenner

Join Date:
May 2009
Posts:
38
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

You need to follow the instructions for the multisite module exactly as written then replace the existing files with the two files I provided and change the config files as I described.

Did you follow the instructions here: http://www.medea.co.uk/dev/multisite_instructions_0.4.html

25 Oct 2010, 1:54 AM
#20
lizmcreations avatar

lizmcreations

New Zenner

Join Date:
Oct 2010
Posts:
13
Plugin Contributions:
0

Re: MultiSite Mod & Sub-Folders vs Subdomains

I'm hoping that you are still "around" and reading this or that you will get a notification of the reply.

I have installed multi-site on a client's site - and I need to use subdomains, so I was very happy to find your modification.

However, I can't seem to get it quite working properly.

I am getting a 403 forbidden error when I view the folder...

Here is the install domain of zencart:
http://zencart.apps.monas.com/

Here is the subfolder:
http://zencart.apps.monas.com/gpwalshcoaching/

This is my config file:

<?php
$template_dir = "nightfall";
define('SITE_NAME','gpwalshcoaching');
define('HTTP_SERVER', 'http://zencart.apps.monas.com/');
define('HTTPS_SERVER', 'https://zencart.apps.monas.com/');
define('CATEGORIES_ROOT','1'); //root categories is 1 for this site  
define('DIR_WS_CATALOG', 'http://zencart.apps.monas.com/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('PRODUCTS_OPTIONS_TYPE_SELECT','0'); //Product option type Select
define('UPLOAD_PREFIX','upload_'); //Upload prefix
define('TEXT_PREFIX','txt_'); //Text prefix
?>

I have assigned the categories in the admin-->tools-->Multisite section. But I am not getting anything at the default store page and I'm getting the 403 Forbidden error at the subfolder.

I have searched through the thread for the standard version of this add-on and the extra instructions that everyone has linked to are no longer available.

I'm hoping that you can help me.

Thank you,

Liz