Zen Cart Logo
Forums / Basic Configuration / Change the site path/folder on my server

Change the site path/folder on my server

Locked

Views: 4,839

Results 1 to 14 of 14
This thread is locked. New replies are disabled.
2 Oct 2006, 7:16 PM
#1
brownsgreens avatar

brownsgreens

New Zenner

Join Date:
Oct 2006
Posts:
25
Plugin Contributions:
0

Change the site path/folder on my server

I have my store at /zen right now.

I would like to change it now to my home directory of just /

Where do I make that change?

Thanks.

2 Oct 2006, 9:07 PM
#2
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Change the site path/folder on my server

Better make a index.html file in the root and redirect it to zen directory!

3 Oct 2006, 4:56 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Change the site path/folder on my server

Redirects are not the solution ...

If you were to use a redirect, you would do a true redirect via your Control Panel so that the Search Engines do not abandon you ...

If you really physically want to move your site up one level from:
/zen

into the root:
/

Move everything up one level into the root directory ...

WARNING: look in your root directory first, is there anything you are about to wipe out with duplicate names, directories, etc.?

Edit the files:
/includes/configure.php
/admin/includes/configure.php

Change all references to the directory /zen/ to be / in all of the defines ...

6 Oct 2006, 6:22 PM
#4
brownsgreens avatar

brownsgreens

New Zenner

Join Date:
Oct 2006
Posts:
25
Plugin Contributions:
0

Re: Change the site path/folder on my server

If I wanted to do a redirect in my control panel, what files would I need to edit in order to keep the site working properly?

Thanks!

6 Oct 2006, 6:43 PM
#5
brownsgreens avatar

brownsgreens

New Zenner

Join Date:
Oct 2006
Posts:
25
Plugin Contributions:
0

Re: Change the site path/folder on my server

I did a redirect from my control panel, edited the configure files, all works great with one hiccup.

The login buttons don't take me to the right location anymore. The domain is https://www.valleymeals.com. Any suggestions?

6 Oct 2006, 7:09 PM
#6
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Change the site path/folder on my server

brownsgreens:

I did a redirect from my control panel, edited the configure files, all works great with one hiccup.

The login buttons don't take me to the right location anymore. The domain is https://www.valleymeals.com. Any suggestions?

I created a login and id and it works. Can you please elaborate more on the problem?

Also, Home link doesnt works!
http://www.valleymeals.com/

EDITED: Never, ever post the zen_id or zenAdminID (session id) in a forum, email, newsgroup, newsletter, advertisement, etc. etc. etc. or you will be doomed ... :eek:

6 Oct 2006, 7:15 PM
#7
brownsgreens avatar

brownsgreens

New Zenner

Join Date:
Oct 2006
Posts:
25
Plugin Contributions:
0

Re: Change the site path/folder on my server

Yes, it works now... :)

I think the server was just still updating.

Thanks!

I'm not sure about the home button not working, it's working for me. But we're working on the site as I type, so maybe something was being worked on right when you tried.

It should work now.

6 Oct 2006, 7:58 PM
#8
superprg avatar

superprg

Totally Zenned

Join Date:
Feb 2006
Location:
Chicago
Posts:
1,349
Plugin Contributions:
0

Re: Change the site path/folder on my server

Fine, it works now! :yes:

12 Oct 2006, 2:25 AM
#10
pitrow avatar

pitrow

New Zenner

Join Date:
Sep 2006
Posts:
9
Plugin Contributions:
0

Re: Change the site path/folder on my server

DrByte:

The URL posted by superprg doesn't look healthy.

The proper way to move your site from one folder to another is documented here:
http://www.zen-cart.com/wiki/index.php/Server_Admin_-_Change_Folders

Hi all,

Newb here. I followed the directions listed in the link above, to move my cart from folder /cart to /coast, but I'm getting the following errors when I try to view the cart, or the admin section:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/XXXXXX/public_html/coast/includes/configure.php:67) in /home/XXXXXX/public_html/coast/includes/functions/sessions.php on line 102

Any ideas?

12 Oct 2006, 3:02 AM
#11
drbyte avatar

drbyte

Sensei

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

Re: Change the site path/folder on my server

you have a blank line at the bottom of your includes/configure.php file.

https://www.zen-cart.com/tutorials/index.php?article=87

Chances are that your FTP program has left all your files with double-spacing. This can make life ugly. You might want to check your FTP program to be sure that it doesn't upload *.php files as binary. It needs to treat them as Ascii or Text files.

12 Oct 2006, 3:30 AM
#12
pitrow avatar

pitrow

New Zenner

Join Date:
Sep 2006
Posts:
9
Plugin Contributions:
0

Re: Change the site path/folder on my server

Thanks DrByte, I'll go check that out.

12 Oct 2006, 3:37 AM
#13
pitrow avatar

pitrow

New Zenner

Join Date:
Sep 2006
Posts:
9
Plugin Contributions:
0

Re: Change the site path/folder on my server

yep, that was it. There were two extra blank lines at the bottom of the file.

Now, I have a kind of related question...

if I have the files set up as https://www.mydomain.com/coast, will it cause problems if I make a subdomain and have users use coast.mydomain.com?

12 Oct 2006, 3:58 AM
#14
drbyte avatar

drbyte

Sensei

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

Re: Change the site path/folder on my server

Pitrow:

yep, that was it. There were two extra blank lines at the bottom of the file.

Now, I have a kind of related question...

if I have the files set up as https://www.mydomain.com/coast, will it cause problems if I make a subdomain and have users use coast.mydomain.com?
You can set your site up like that if you like. You'll need to ensure that your configure.php files have the proper details to support it.
Namely the HTTP_XXXXXXX_SERVER and DIR_WS_XXXXXX_CATALOG settings.