Results 1 to 6 of 6
  1. #1
    Join Date
    Sep 2005
    Location
    Ocala, FL
    Posts
    528
    Plugin Contributions
    0

    Default Remove sub-domain access from Addon Domain

    Hello Everyone,
    I have a Bluehost account and have setup a couple of Zen cart store for clients.
    My concern is how add on domains would appear to users and search engines.


    For example let’s say:
    My domain is www.markets.com

    My client’s shops are www.clientshop1.com and www.clientshop2.com but as add on domains using Bluehost they appear to the user when actually using the site as www.markets.com/clientshop1 and www.markets.com/clientshop2.
    So it appears as sub domains even though they are add on domains.

    I found out that by altering the htaccess file with some code will enable the site not to show them as sub domains.
    I read people doing this worked ok, but I am not sure if it would be ok with Zen Cart.
    Here is the link explaining how:
    http://www.fayazmiraz.com/remove-sub...-addon-domain/

    What I would like to know is if anyone tried this with a Zen cart on Bluehost successfully?
    If not what would be the right approach.
    Greatly appreciated as always!

    Zen Cart ROCKS!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Remove sub-domain access from Addon Domain

    If you set your HTTP_SERVER to clientshop1.com and your DIR_WS_CATALOG to / and your DIR_FS_CATALOG to public_html/clientshop1 then it should work just fine by visiting www.clientshop1.com, invisible to the visitor ... assuming the addon domains are properly configured by the hosting company.
    Same with clientshop2.

    No need for .htaccess junk
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Sep 2005
    Location
    Ocala, FL
    Posts
    528
    Plugin Contributions
    0

    Default Re: Remove sub-domain access from Addon Domain

    Quote Originally Posted by DrByte View Post
    If you set your HTTP_SERVER to clientshop1.com and your DIR_WS_CATALOG to / and your DIR_FS_CATALOG to public_html/clientshop1 then it should work just fine by visiting www.clientshop1.com, invisible to the visitor ... assuming the addon domains are properly configured by the hosting company.
    Same with clientshop2.

    No need for .htaccess junk
    Ok. I tried it with the following lines:

    define('HTTP_SERVER', 'clientshop1.com');
    define('HTTPS_SERVER', 'https://www.markets.com'); (this is my main account w/ ssl would this correct?)
    define('DIR_WS_CATALOG', '/');
    define('DIR_WS_HTTPS_CATALOG', '/clientshop1/');
    define('DIR_FS_CATALOG', 'public_html/clientshop1');
    This line used to be the following:
    define('DIR_FS_CATALOG', '/home8/markets/public_html/clientshop/');

    After these changes I typed clientshop1.com and got the Hello. Thank you for loading Zen Cart™. page.
    I could not do anything else. I know I must of messed up something. I think it's an SSL issue? Not sure. What do you think?
    Thank you.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Remove sub-domain access from Addon Domain

    Quote Originally Posted by spawnie69 View Post
    define('DIR_FS_CATALOG', 'public_html/clientshop1');
    This line used to be the following:
    define('DIR_FS_CATALOG', '/home8/markets/public_html/clientshop/');
    No, it should be:
    define('DIR_FS_CATALOG', '/home8/markets/public_html/clientshop/');

    ... or replace 'clientshop' with 'clientshop1' or whatever folder the store is actually in.

    I didn't mean to imply removing the stuff before the "public_html" part.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #5
    Join Date
    Sep 2005
    Location
    Ocala, FL
    Posts
    528
    Plugin Contributions
    0

    Default Re: Remove sub-domain access from Addon Domain

    Quote Originally Posted by DrByte View Post
    No, it should be:
    define('DIR_FS_CATALOG', '/home8/markets/public_html/clientshop/');

    ... or replace 'clientshop' with 'clientshop1' or whatever folder the store is actually in.

    I didn't mean to imply removing the stuff before the "public_html" part.
    Thanks so much for the help! It worked like a charm.
    This may sound like a dumb question...I am sharing my ssl with my clientshops so I guess there is no way to hide my domain from the ssl pages is there?

    Thanks DrByte!

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Remove sub-domain access from Addon Domain

    No. That's the way a shared certificate works.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. v150 Sub-domain Admin access?
    By ckelley in forum General Questions
    Replies: 3
    Last Post: 9 Nov 2012, 01:04 AM
  2. Sub-Domain to Share Image Folder on Main Domain
    By lndlyb4 in forum Basic Configuration
    Replies: 1
    Last Post: 23 Nov 2011, 09:29 PM
  3. Moving cart from sub domain to main
    By stefanl in forum General Questions
    Replies: 1
    Last Post: 24 Feb 2011, 10:16 AM
  4. More than one Zencart on a domain / Sub domain
    By unisupuk in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 17 Nov 2006, 12:45 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