Results 1 to 10 of 10
  1. #1
    Join Date
    Jul 2006
    Posts
    25
    Plugin Contributions
    0

    Default How to redirect Home Page

    Hi,

    My shop is set up in a folder called catalog. I want my domain name to go direct to this url.

    For example my domain is www.mysite.com

    My shop is at www.mysite.com/catalog

    How do I ensure when someone types my domain name into a browser they go straight to my catalog.

    Is it a .htaccess redirect file or is there a setting within zen cart to do this?

    Thanks in advance,

  2. #2
    Join Date
    Apr 2006
    Posts
    242
    Plugin Contributions
    0

    Default Re: How to redirect Home Page

    make a index.html file in the root of you server add this code to it. Remember to replace the URL part of course :-)


    <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html">

    The above HTML redirect code will redirect your visitors to another web page instantly. The content="0; may be changed to the number of seconds you want the browser to wait before redirecting.

  3. #3
    Join Date
    Jul 2006
    Posts
    25
    Plugin Contributions
    0

    Default Re: How to redirect Home Page

    Thanks for the reply,

    However a meta refresh will not please search engines. They will assume you are spamming them, i.e. getting indexed for a page of content and then redirecting them to an unrelated page

    What I've done for now is create a 301 redirect in a .htaccess file on the root of the site, see here for more info:

    http://www.tamingthebeast.net/articl...1-redirect.htm

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

    Default Re: How to redirect Home Page

    If you want your domain name to point directly to your ZC shop, why don't you move it to the root directory?

  5. #5
    Join Date
    Aug 2005
    Posts
    154
    Plugin Contributions
    0

    Default Re: How to redirect Home Page

    I have the same issue...

    How hard is it to move my installation from the folder called 'zen' which is under my root folder (public_html) to the root folder?

  6. #6
    Join Date
    Jan 2004
    Posts
    66,450
    Plugin Contributions
    81

    Default Re: How to redirect Home Page

    Moving your site from one folder to another:
    http://www.zen-cart.com/wiki/index.p...Change_Folders
    .
    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.

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

    Default Re: How to redirect Home Page

    It shouldn't be that difficult. You need to move everything "as is" from the /zen/ folder to the root directory, so that the folders within /zen/ maintain their contents. You'll have to edit the config files in the admin and in the /includes/ folder to point to the root instead of the /zen/ folder. Of coure, just thinking about it makes me twitchy , but I think that should be it. When I moved the Holzheimer's site from the test directory on another domain to the live site, that's what I had to do.

  8. #8
    Join Date
    Aug 2005
    Posts
    154
    Plugin Contributions
    0

    Default Re: How to redirect Home Page

    Another question...

    If I use a 301 redirect from my homepage, how would I get it to go to this page... http://www.mydomain.net/zendirectory...&showHome=true

    I need to have that display as my homepage instead of just http://www.mydomain.net/zendirectory/

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

    Default Re: How to redirect Home Page

    Why are you keeping your old home page if you aren't going to use it? Why don't you just replace it with the ZC files and eliminate the need for a redirect?

  10. #10
    Join Date
    Aug 2005
    Posts
    154
    Plugin Contributions
    0

    Default Re: How to redirect Home Page

    Well I just don't want to have to go through moving all the files over since I have everything working the way I want now.

    The issue is two fold:

    (A) I should have installed ZC in the root directory! I didn't and now I will have to go and do the move manually

    and

    (B) I wanted to be able to show the product listing for a particular category on my main "store" page. I did a lot of searching and people said it couldn't be done or it was a bad hack. What I did is just make the category product listing page look the way I wanted it to and then I added a variable called 'showHome' and when it is passed in the link it tells that template to show homepage text before the category product listing!

    So that makes it look how I want, but now I need to tell ZC to go to that page directly instead of loading it's main page. Anyone know how I would do that?

    PS: Thanks for all the quick replies and help everyone!

 

 

Similar Threads

  1. Redirect to home page... how?
    By incircolo in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 10 Oct 2011, 11:15 PM
  2. How to redirect a pseudo-static page using a 301 redirect ?
    By anahong in forum General Questions
    Replies: 1
    Last Post: 23 Jul 2010, 02:37 PM
  3. How to redirect home page on first load?
    By jeanx001x in forum General Questions
    Replies: 0
    Last Post: 15 Feb 2009, 06:03 PM
  4. Auto redirect from home page to zen cart home
    By gizmo_girl in forum Basic Configuration
    Replies: 5
    Last Post: 4 Nov 2008, 03:46 PM
  5. Redirect default home page?
    By thedust2010 in forum General Questions
    Replies: 5
    Last Post: 6 Jun 2007, 06:24 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