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,515
Plugin Contributions:
176

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.

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

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