Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Help? Move shop to sub-domain

Help? Move shop to sub-domain

Locked

Views: 2,448

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
15 Jul 2009, 7:39 PM
#1
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Help? Move shop to sub-domain

My shop currently resides on http://mydomain/shop
I need to move it to subdomain: http://shop.mydomain

How do I configure such things as:

DIR_WS_CATALOG -- currently is /shop/

etc.?

I just tried and broke my template entirely :(

15 Jul 2009, 8:16 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: Help? Move shop to sub-domain

Easiest:
Create your sub-domain and install ZenCart fresh there
This will generate the correct configure.php files

Edit these 2 files and change the DB info to your current /shop DB details and Save these

Delete the install you just created

Move or better yet copy all of your current shop files to the sub-domain location
Replace the 2 configure files with those that you saved

The shop at the sub domain should be good to go

16 Jul 2009, 1:07 AM
#3
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Help? Move shop to sub-domain

well but the way my server is configured, the new subdomain shop.mydomain.com is set up to point to mydomain/shop

So technically, it all works fine at present.

The real issue, however, is that mydomain.com is now going to be hosted elsewhere -- though the shop will remain on my server SUBDOMAIN with an A Record set up.

I'm told that I need to change config so that all works from subdomain rather than primary domain.

I thought it would be easier to just manually edit the config files -- but am unclear as to how to do it correctly.

20 Jul 2009, 6:39 PM
#4
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Help? Move shop to sub-domain

Adding a new post because it is several days later and I could use a little help please :lookaroun

I've purchased a self-signed ssl cert and changed admin and main config to point to the subdomain shop.mysite.com

All works fine EXCEPT for one spot that I simply cannot seem to find to fix.

In the header menu it shows SIGN IN | Shipping Info | Contact Us .... and that SIGN IN link is still pointing to the primary domain NOT to the subdomain. All other links are correct, including the Would you like to log yourself in ... etc.

Link is here if anyone can advise on how to change this one little glitch? THANKS :)

22 Jul 2009, 3:45 PM
#5
aly22 avatar

aly22

Zen Follower

Join Date:
Feb 2008
Posts:
174
Plugin Contributions:
0

Re: Help? Move shop to sub-domain

SOLVED -- internal link URL had been set on EZ-pages for the sign in page for some reason. All better now :)