Results 1 to 6 of 6

Hybrid View

  1. #1
    Join Date
    Apr 2005
    Location
    White Salmon, WA
    Posts
    62
    Plugin Contributions
    0

    Default Upgrading from root to subfolder, when what?

    Hi,

    I just upgraded a Zen Cart and at the same time, moved it to a subfolder.

    http://www.danielshealthandnutrition.com/

    to

    http://www.danielshealthandnutrition.com/store201007/


    It seems to be working okay. But what's the best way to have http://www.danielshealthandnutrition.com/ now point to http://www.danielshealthandnutrition.com/store201007/?

    I tried a 301 redirect using the cPanel control panel, but it isn't working. I get a message saying the redirect won't resolve or something.

    Is there a better way to do this?

    I'm assuming I'll have to remove the /store201007/ references in both config files, right?

    My thoughts to moving to a subfolder is to make the next upgrade easier. I can just call that /store201003/ or whatever, and I won't have to go through this root to subfolder stuff again. I'm guessing that's safer than overwriting files on the root to upgrade.

    Thanks!
    Scott See
    www.hammock.net
    Global Marketing
    White Salmon, WA

  2. #2
    Join Date
    Jun 2008
    Location
    3rd planet from the sun
    Posts
    6
    Plugin Contributions
    0

    Default Re: Upgrading from root to subfolder, when what?

    Take a look at this article from bluehost. I have done it with a drupal site and got no problem. I will be doing it for my zencart site soon.
    http://helpdesk.bluehost.com/index.p...article/000347

  3. #3
    Join Date
    Feb 2005
    Location
    Captain Cook, Hawaii
    Posts
    179
    Plugin Contributions
    0

    Default Re: Upgrading from root to subfolder, when what?

    Putting the cart below the root is a good idea in my mind. FYI, in all of the sites I manage, we try to have a website outside the cart. Although that is not always an appropriate solution for everyone, it does offer a few things that are more difficult to put inside the cart.

    We describe the company, perhaps give specific shipping options, add the credit card logos, photos of some products and links to information. In our situation, coffee farms, we also show how we process the coffee and photos of our farms and photos of employees, etc

    While all doable inside the cart, we think it makes a more rounded website. Then there is a SHOP button which links to the cart.

    By moving the cart down one level, you also create the opportunity to add a photo galelry or forum or whatever without rewriting the redirect page. As I say, you may not want to add any of these items, however I just think iit makes things easier for later. You never know what migth come up.

    Our index.html page is outside the cart and perhaps the cart is at website.com/cart.

    If you follow the upgrade suggestions in the forums, you could create a test cart at website.com/cart1. You know where it is and can access it directly without having to put in a link.

    I know of people who install the cart at the root level of the site and I think that just makes it more difficult.

    Also, I think some redirects may effect Google and other search engine rankings.
    Last edited by mshultise; 22 Jul 2010 at 07:28 PM.
    Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)

  4. #4
    Join Date
    Apr 2005
    Location
    White Salmon, WA
    Posts
    62
    Plugin Contributions
    0

    Default Re: Upgrading from root to subfolder, when what?

    So I've got my store installed in http://danielshealthandnutrition.com/store/

    I've copied index.php to the root directory, and I'm trying to get index.php to point to /store/index.php

    I've changed

    require('includes/application_top.php');

    to

    require('store/includes/application_top.php');

    and

    <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

    to

    <?php require(DIR_WS_INCLUDES . 'store/application_bottom.php'); ?>

    But /index.php still doesn't link to /store/

    This should be pretty easy, but I know I'm missing something. Any ideas?
    Scott See
    www.hammock.net
    Global Marketing
    White Salmon, WA

  5. #5
    Join Date
    Apr 2005
    Location
    White Salmon, WA
    Posts
    62
    Plugin Contributions
    0

    Default Re: Upgrading from root to subfolder, when what?

    I ended up upgrading to the root folder. I couldn't figure out a way to move the site to a subfolder without having a "non-zen" index.php at the root.
    Scott See
    www.hammock.net
    Global Marketing
    White Salmon, WA

  6. #6
    Join Date
    Feb 2005
    Location
    Captain Cook, Hawaii
    Posts
    179
    Plugin Contributions
    0

    Default Re: Upgrading from root to subfolder, when what?

    Quote Originally Posted by scott_see View Post
    I ended up upgrading to the root folder. I couldn't figure out a way to move the site to a subfolder without having a "non-zen" index.php at the root.
    This index.html file may work for you. Put it in your root directory.

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>redirect</title>
    <meta http-equiv="Refresh" content="0; URL=http://www.danielshealthandnutrition.com/store201007/index.php">
    </head>
    <body>
    <br>
    </body>
    </html>


    Adding a 301 redirect is documented here (if you decide to do that instead).

    http://www.dailyblogtips.com/how-to-...-301-redirect/
    Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)

 

 

Similar Threads

  1. Problems moving from subfolder to root
    By innovcap in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 23 Jul 2012, 04:51 PM
  2. Moving zencart from subfolder to root
    By vito in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 3 Oct 2008, 06:24 AM
  3. Moving Cart from Root to Subfolder - Not Working!!
    By routineisforrobots in forum Installing on a Linux/Unix Server
    Replies: 6
    Last Post: 26 Aug 2008, 08:45 PM
  4. Moving ZC from root to subfolder
    By TheRaven in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 13 Mar 2008, 04:40 AM

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