Results 1 to 4 of 4
  1. #1
    Join Date
    May 2013
    Location
    Fairfield, ia
    Posts
    13
    Plugin Contributions
    0

    Default redirect 301 is not working

    HELP!

    I've used .htaccess files before, but have not used them with Zen Cart. I have urls that need to be redirected to the home page. I've read as many posts I could find, tried everything that was suggested and it's still not working. I'm sure I'm missing something.

    The website is http://horsesjustwannahavefun.com/

    This is what I've added to the .htaccess file:
    RewriteEngine On
    redirect /hjwhf-store.html http://www.horsesjustwannahavefun.com/
    redirect /store.html http://www.horsesjustwannahavefun.com/
    redirect /stop.html http://www.horsesjustwannahavefun.com/
    redirect /horse-training-tools.html http://www.horsesjustwannahavefun.com/
    redirect /adlinks.htm http://www.horsesjustwannahavefun.com/
    redirect /articles.pdf http://www.horsesjustwannahavefun.com/
    redirect /tacktips.pdf http://www.horsesjustwannahavefun.com/
    redirect /horse-playground-store.html http://horsesjustwannahavefun.com/

    But it still doesn't work. The htaccess file is the default file that is included in the install of Zen Cart. I haven't added anything else. Also, I tried directing the site from a non-www to a www site, but the code I used shut down the site. So I removed the following code:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} .
    RewriteCond %{HTTP_HOST} !^www\.horsesjustwannahavefun\.com
    RewriteRule (.*) http://www.horsesjustwannahavefun.com/$1 [R=301,L]
    </IfModule>

  2. #2
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: redirect 301 is not working

    By default there is no .htaccess file in the root of Zen Cart. So the file you edited is probably not in the root of your zen Cart installation, assuming Zen Cart is installed directly in the public_html folder(root of the webserver). I am guessing you edited the .htaccess file in your includes folder.
    Make a new .htaccess file in the root and add the rewrite contents there.

  3. #3
    Join Date
    May 2013
    Location
    Fairfield, ia
    Posts
    13
    Plugin Contributions
    0

    Default Re: redirect 301 is not working

    You are correct - I did get it from the include folder. For the .htaccess file I need to create, is it just a basic one or is there something else I need to include?

  4. #4
    Join Date
    Dec 2009
    Location
    Amersfoort, The Netherlands
    Posts
    2,846
    Plugin Contributions
    25

    Default Re: redirect 301 is not working

    Just create an empty .htaccess file in the root of your webserver and put the rewrite stuff in it. That should work

 

 

Similar Threads

  1. v139h redirect 301 working on one store but on the other
    By BrooklynArtist in forum General Questions
    Replies: 3
    Last Post: 10 Aug 2012, 08:18 PM
  2. 301 redirect not working
    By plymgary1 in forum General Questions
    Replies: 5
    Last Post: 10 Jul 2010, 02:11 AM
  3. Replies: 14
    Last Post: 2 Jul 2008, 03:40 PM
  4. 301 redirect in htaccess not working
    By FrenchFrog in forum General Questions
    Replies: 10
    Last Post: 24 Aug 2007, 12:36 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR