Results 1 to 7 of 7
  1. #1
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Index page of site...

    When I installed ZenCart I installed it in its own directory, ie: store.

    I did this because I originally thought that I would do something with the index page and keep it separate from my shop. Well, I have not gotten around to this.

    The problem with doing this is that I cannot get my index page to be in sync with the store/Zen index page. everytime I make a change, I have to save the page and load it onto the server ti the root of my site.

    How difficult is it to just remove the store directory and have the shopping cart load as the main index page? Or, how can I get the main site index page to duplicate the store index page. Hopw this is not too confusing.

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

    Default Re: Index page of site...

    Easy.

    Just copy all the Zencart folders and files to the root of your site, and edit the path information in the two configure.php files, removing the /store.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: Index page of site...

    Note : you will need do do 301 redirects from all of the links that have been spidered to the new locations ...
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Index page of site...

    It's pretty simple to move your Zen Cart to the root - see I have installed Zen Cart to a directory. How do I rename or move that directory? in the tutorials.

    If you have a decent amount of search engine visibility built up, you will want to redirect traffic from the subfolder to the root location. One way to do this is detailed in Forwarding from old shop to new?

  5. #5
    Join Date
    Oct 2007
    Location
    MA, USA
    Posts
    385
    Plugin Contributions
    0

    Default Re: Index page of site...

    Thanks for the quick response guys. The 301 redirects is what scares me. I have never done one and am pretty much lost for knowing how to.

    Is there any benefit to running the Cart from the root vs a sub dir? Is there an easy way to have the root index page mirror the Sub Dir cart index page? Thanks

  6. #6
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Index page of site...

    I had never done that either, but with guidance from experts I was able to work out exactly what is needed for the situation. See post 22 in that thread.

  7. #7
    Join Date
    Jun 2008
    Location
    Washington, DC
    Posts
    789
    Plugin Contributions
    7

    Default Re: Index page of site...

    Depending on what you want here are two suggestions.

    Example 1
    Is very simple if your site is called with just it's url this
    will send it to your sub directory.
    Copy this text and save as index.html and place it in the root of your url.
    (1)
    Code:
    <html>
    <body onload=location.replace('http://www.yoursite.com/store/index.php')>
    </body>
    </html>
    Example 2
    Is a rewrite mod that you would need to be place in your root .htaccess file
    This rewrite works alot different then most. It allows you to have a
    sub directory with your zen cart in it but when looking at the url address in a browser
    it will display the store as if you have it in the root.
    (2)
    Code:
    Options -Indexes
    RewriteEngine on
    Options +FollowSymLinks
    RewriteCond %{HTTP_HOST} !^www\.yoursite\.com$ [NC]
    RewriteRule .* http://www.yoursite.com/ [L,R=301]
    RewriteRule ^$ store/index.php [L]
    RewriteCond %{DOCUMENT_ROOT}/store%{REQUEST_URI} -f
    RewriteRule .* store/$0 [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* store/index.php?q=$0 [QSA]
    You will need to edit the urls of these examples to fit your needs.
    • 446F63746F722057686F •

 

 

Similar Threads

  1. Removed index.html and index of my site is now visible any suggestions
    By LeoJ in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 17 May 2013, 02:59 AM
  2. Problem redirect after login on site with html index page
    By brianosc in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 13 May 2008, 03:06 PM
  3. Use RSS from one site for anothers index page
    By bumba000 in forum General Questions
    Replies: 0
    Last Post: 15 Nov 2007, 10:53 PM
  4. Making copy of site fails to show any page but index.php
    By onpointlasers in forum Installing on a Linux/Unix Server
    Replies: 10
    Last Post: 12 Sep 2007, 09:00 PM
  5. EZ-Page for index of main site?
    By KimberleyB in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 1 Nov 2006, 04:37 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