Results 1 to 7 of 7

Hybrid View

  1. #1
    Join Date
    Feb 2009
    Posts
    3
    Plugin Contributions
    0

    Default 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!!

  2. #2
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: Moving Zencart up to the root directory?

    .

    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.

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Moving Zencart up to the root directory?


  4. #4
    Join Date
    Feb 2009
    Posts
    3
    Plugin Contributions
    0

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

  5. #5
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

    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.

  6. #6
    Join Date
    May 2008
    Posts
    19
    Plugin Contributions
    0

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

  7. #7
    Join Date
    Jan 2008
    Posts
    6
    Plugin Contributions
    0

    Default 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!

 

 

Similar Threads

  1. Moving a store to the root directory from a sub-folder
    By Hell Guapo in forum General Questions
    Replies: 3
    Last Post: 21 Sep 2011, 05:51 PM
  2. Moving zencart to root directory
    By naz1228 in forum Installing on a Windows Server
    Replies: 6
    Last Post: 26 Dec 2010, 05:15 AM
  3. Error occurred after moving zencart to root directory
    By dealbyethan.com in forum General Questions
    Replies: 2
    Last Post: 23 Aug 2006, 02:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg