Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2007
    Posts
    19
    Plugin Contributions
    0

    help question quick question about changing the zencart folder to a subdomain

    I currently have ZenCart installed on my site, here- http://chaoticlycreative.com/store

    I *just* made store a subdomain(1/2 hour ago),
    but I'm getting errors saying it isn't there...

    I'm trying to go from this-
    http://chaoticlycreative.com/store
    to this-
    http://store.chaoticlycreative.com/


    Do I need to do anything to make it realize it's now on a subdomain?
    I'm sorta confused on that (because right now it's not showing)


    If someone could help, I'd realllly appreciate it!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: quick question about changing the zencart folder to a subdomain

    Some FAQs on moving things around:
    https://www.zen-cart.com/tutorials/i...hp?article=122
    https://www.zen-cart.com/tutorials/i...hp?article=101

    In your case, set your server URL to use "store" instead of "www"
    And in your DIR_WS entries, remove the "store"
    But in your DIR_FS entries, LEAVE the "store" 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.

  3. #3
    Join Date
    Apr 2007
    Posts
    19
    Plugin Contributions
    0

    Idea or Suggestion Re: quick question about changing the zencart folder to a subdomain

    I was so busy working on other things, I forgot to work on this!

    For anyone else who wanted to know-

    I had to go in /includes/configure.php and /admin/includes/configure.php

    and change in /includes/configure.php

    line 17(ish)-
    define('HTTP_SERVER', 'http://yourdomain.com');
    define('HTTPS_SERVER', 'https://yourdomain.com');
    to
    define('HTTP_SERVER', 'http://store.yourdomain.com');
    define('HTTPS_SERVER', 'https://store.yourdomain.com');

    line 26(ish)

    define('DIR_WS_CATALOG', '/store/');
    define('DIR_WS_HTTPS_CATALOG', '/store/');
    to show-
    define('DIR_WS_CATALOG', '/store.yourdomain.com/');
    define('DIR_WS_HTTPS_CATALOG', '/store.yourdomain.com/');
    and change in /admin/includes/configure.php

    line 29 (ish)

    Code:
      define('HTTP_SERVER', 'http://yourdomain.com');
      define('HTTPS_SERVER', 'https://yourdomain.com');
      define('HTTP_CATALOG_SERVER', 'http://yourdomain.com');
      define('HTTPS_CATALOG_SERVER', 'https://yourdomain.com');
    to
    Code:
      define('HTTP_SERVER', 'http://store.yourdomain.com');
      define('HTTPS_SERVER', 'https://store.yourdomain.com');
      define('HTTP_CATALOG_SERVER', 'http://store.yourdomain.com');
      define('HTTPS_CATALOG_SERVER', 'https://store.yourdomain.com');

    worked perfect for me :)

 

 

Similar Threads

  1. v151 I have a quick question about the EZ-pages.
    By coffeebean2009 in forum General Questions
    Replies: 10
    Last Post: 10 Mar 2013, 11:20 PM
  2. Quick question about the contact form
    By doodlebee in forum General Questions
    Replies: 11
    Last Post: 14 Dec 2006, 02:26 AM
  3. Question about changing the admin password
    By dbrewster in forum General Questions
    Replies: 3
    Last Post: 17 Aug 2006, 05:47 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR