Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2009
    Posts
    18
    Plugin Contributions
    0

    Default How do I make my Zen Cart my index file?

    On my server there is a folder public html where I would put a index so the page is my homepage. When Zen Cart is in a folder named catalog how do I make it to my index?

    If I have another index file I can see my cart by index/catalog but how do I get my cart to come up under my domain name.

    Thanks
    Eddie

  2. #2
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How do I make my Zen Cart my index file

    There are a few ways.

    The best in my opinion is to move the Zen Cart installation into the root. This is a bit of a pain in that you need to alter configure files etc to match the move. I think there is tutorial for this but search the forum because it has been explained before.

    The other way is to add a 301 divert that will divert traffic (permanently) for your root to the Zen Cart folder. It is done in the.htaccess file and again I think there is information in the forum on how to do this.

    The disadvantage of the second option is that the URLs will remain like this:

    www.domain.com/zencart/blahblahblah.php

    So if someone types in to a browser www.domain.com they will get straight to the shop but the URL will be www.domain.com/zencart/index.php

  3. #3
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: How do I make my Zen Cart my index file

    The best thing to do is move Zen Cart to the root (public_html). The steps are outlined in

    https://www.zen-cart.com/tutorials/i...hp?article=122
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  4. #4
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    541
    Plugin Contributions
    0

    Default Re: How do I make my Zen Cart my index file

    If you dont have anything else in the root folder, there is no reason why to put zencart not there. However, if you wanna leave ti there for the moment, you can create a index.php file in the root (public_html) directory with the following content

    Code:
    <?php
    header ("location: /catalog/index.php");
    die;
    ?>

  5. #5
    Join Date
    Sep 2009
    Posts
    5
    Plugin Contributions
    0

    Default Re: How do I make my Zen Cart my index file

    I had the same question and I did tino's fix...But of course it did not work. My zencart was under /store.

    My question is this. Will this affect my analytics? Does anyone know?
    Thanks!

  6. #6
    Join Date
    Apr 2009
    Posts
    2,134
    Plugin Contributions
    3

    Default Re: How do I make my Zen Cart my index file

    OK. I agree with everything that people (including myself) have said. It is preferable to move the install into the root folder. If for some reason you can't or don't want to I still think that the best way to do it (both for functionality and for search engines) is to use a 301 redirect in an htaccess file.

    The .htaccess file sits in the root directory and needs to contain this line:

    Code:
    redirect 301 /index.php http://www.domain.com/shop/
    where www.domain.com/shop is the path to the shop.

    What exactly do you mean about effecting analytics? With the 301 the pages are reported in analytics by their actual paths . For instance, the home page is reported as www.domain.com/shop.

    If you are asking about SEO stuff then the 301 is the best way of doing a redirect. It is a permanent redirect and search engines treat www.domain.com as if it was www.domain.com/shop/

    Still, however, my recommendation is to move the install into the root folder.

 

 

Similar Threads

  1. Anyone know how to make index.html default instead of index.php?
    By msbettybebe in forum Installing on a Linux/Unix Server
    Replies: 9
    Last Post: 23 May 2011, 04:01 PM
  2. Replies: 16
    Last Post: 22 Jun 2010, 01:33 PM
  3. Replies: 1
    Last Post: 23 Mar 2010, 05:23 AM
  4. How do I make domain go to my zen cart ?
    By DravenLS in forum Templates, Stylesheets, Page Layout
    Replies: 22
    Last Post: 9 Dec 2007, 05:21 AM
  5. How do I make the Zen-Cart home page...
    By friends1976 in forum General Questions
    Replies: 3
    Last Post: 23 Jun 2007, 09:30 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