Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1
    Join Date
    May 2009
    Posts
    38
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    May 2009
    Posts
    38
    Plugin Contributions
    0

    Default Re: MultiSite Mod & Sub-Folders vs Subdomains

    Attaching file
    Attached Files Attached Files
    Last edited by roylen1; 5 Nov 2009 at 02:45 AM.

  3. #3
    Join Date
    May 2009
    Posts
    38
    Plugin Contributions
    0

    Default Re: MultiSite Mod & Sub-Folders vs Subdomains

    updated files
    Attached Files Attached Files

  4. #4
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default 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. #5
    Join Date
    May 2009
    Posts
    38
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: MultiSite Mod & Sub-Folders vs Subdomains

    Quote Originally Posted by roylen1 View Post
    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?
    Last edited by wmorris; 5 Feb 2010 at 09:23 PM.

  7. #7
    Join Date
    May 2009
    Posts
    38
    Plugin Contributions
    0

    Default 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.

  8. #8
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: MultiSite Mod & Sub-Folders vs Subdomains

    Quote Originally Posted by roylen1 View Post
    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
    ?>

  9. #9
    Join Date
    May 2009
    Posts
    38
    Plugin Contributions
    0

    Default 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
    ?>

  10. #10
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Re: MultiSite Mod & Sub-Folders vs Subdomains

    Quote Originally Posted by roylen1 View Post
    <?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?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. image sub folders under large and medium folders
    By Sushigal in forum General Questions
    Replies: 2
    Last Post: 16 Apr 2009, 04:37 PM
  2. Transfering Hosting and godaddy multisite mod
    By TheDruid in forum General Questions
    Replies: 5
    Last Post: 8 Aug 2008, 07:29 AM
  3. Column Grid Display with MultiSite Mod
    By alma in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 27 Nov 2007, 04:59 PM
  4. Column Grid Display with MultiSite Mod
    By alma in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 27 Nov 2007, 04:59 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg