Zen Cart Logo
Forums / General Questions / quick question about changing the zencart folder to a subdomain

quick question about changing the zencart folder to a subdomain

Locked

Views: 1,071

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
18 Jul 2007, 5:15 PM
#1
zkitten avatar

zkitten

New Zenner

Join Date:
Apr 2007
Posts:
19
Plugin Contributions:
0

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! :D

18 Jul 2007, 6:40 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

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

Some FAQs on moving things around:
https://www.zen-cart.com/tutorials/index.php?article=122
https://www.zen-cart.com/tutorials/index.php?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.

17 Aug 2007, 4:26 PM
#3
zkitten avatar

zkitten

New Zenner

Join Date:
Apr 2007
Posts:
19
Plugin Contributions:
0

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)**

  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

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 :)