If this is your first visit, check our documentation. To post, register or login.
Forums / Configuring the Zen Cart Admin / Basic Configuration / Change the site path/folder on my server

Change the site path/folder on my server

Locked

Started by brownsgreens on 2 Oct 2006, 7:16 PM · Views: 4,842

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

Post #1 by brownsgreens

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

Post #2 by superprg

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

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

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

ajeh

Oba-san

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

Post #3 by ajeh

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

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

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

brownsgreens

New Zenner

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

Post #4 by brownsgreens

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

Post #5 by 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?

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

superprg

Totally Zenned

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

Post #6 by superprg

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:

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

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

brownsgreens

New Zenner

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

Post #7 by brownsgreens

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

Post #8 by superprg

Fine, it works now! :yes:

Tutorials on Zen Cart
http://tutorials.zen-cart.com/index.php

advanced.programmer at gmail dot com
In love with Zen Cart!!

6 Oct 2006, 8:41 PM
#9
drbyte avatar

drbyte

Sensei

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

Post #9 by 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

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

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

pitrow

New Zenner

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

Post #10 by pitrow

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

Post #11 by drbyte

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.

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

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

pitrow

New Zenner

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

Post #12 by pitrow

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

Post #13 by 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?

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

drbyte

Sensei

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

Post #14 by drbyte

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.

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