Zen Cart Logo
Forums / Installing on a Linux/Unix Server / Moving Zencart up to the root directory?

Moving Zencart up to the root directory?

Locked

Views: 4,089

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
27 Feb 2009, 7:22 PM
#1
mav67 avatar

mav67

New Zenner

Join Date:
Feb 2009
Posts:
3
Plugin Contributions:
0

Moving Zencart up to the root directory?

Hi guys, I just started installing and using Zencart and so far it's been a good experience. Just one thing I'd like to ask though, I got a little carried away with following the instructions and accidently installed Zencart in the directory: http://www.domain.com/catalog. What I should've done is just install it in: http://www.domain.com
Can anyone tell me how I can move it up one level? Obviously I can't just move everything up a level and expect it to work. At the least I'll have to redefine the paths page like during setup (don't know how to get to that page again!)

Any help would be greatly appreciated!!

28 Feb 2009, 5:28 AM
#4
mav67 avatar

mav67

New Zenner

Join Date:
Feb 2009
Posts:
3
Plugin Contributions:
0

Re: Moving Zencart up to the root directory?

Ok thanks so far for your help. I have tried modifying the files but I'm unsure of something.
For the entries:

define('DIR_WS_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/catalog/');

I understand that these both point to the "catolog" directory which I created in the intial setup. My new directory structure is one level above this, since the "catalog" directory no longer exists. But how can I show that I just want it to point to the very top? What I tried was:

define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');

....but with no sucess (I just get the "Hello. Thank you for loading Zen Cart™.
You are seeing this page for one or more reasons" screen)

I understand the other entries because they are absolute paths instead of relative.

28 Feb 2009, 7:41 AM
#5
drbyte avatar

drbyte

Sensei

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

Re: Moving Zencart up to the root directory?

Using just '/' is the correct approach.

If it's not working, check that you made the files writable before trying to upload your changes. If they were read-only (for security) then uploading changes will fail.

If your edits were properly uploaded, then post the revised file contents here, without the database password.

28 Mar 2009, 10:09 PM
#6
forestfrogsllc avatar

forestfrogsllc

New Zenner

Join Date:
May 2008
Posts:
19
Plugin Contributions:
0

Re: Moving Zencart up to the root directory?

Is it possible to have the zencart storefront appear when someone visits the root directory URL, without moving all the files to the root directory?

For example, with my Word Press blog, only the index.php file resides in the root directory, and it calls to the /blog/ directory.

I read the FAQs about moving to a different directory, and it sounds like they are moving all the files as well. I would rather leave them in the current directory instead of cluttering up the root, but want to change from having a news blog as the root directory landing page to the storefront.

28 Sep 2009, 2:15 PM
#7
conniec avatar

conniec

New Zenner

Join Date:
Jan 2008
Posts:
6
Plugin Contributions:
0

Re: Moving Zencart up to the root directory?

Had the same problem. Installed and setup everything to work in directory shop/ then wanted site to come up using main directory.

My webhost wouldn't let me do a 301 Redirect in htaccess, so I did a DirectoryIndex shop/index.php index.html and it's working great!:cool: