Results 1 to 7 of 7
  1. #1
    Join Date
    Feb 2009
    Posts
    120
    Plugin Contributions
    0

    help question Why wont this redirect work?

    I am trying to set up a 301 redirect on my site but i keep getting a 'redirect loop' error. I'm not sure why? I've got other redirects in place and they work fine (using similar coding). The code i'm putting in to htaccess is:

    redirect 301 /ethnicgiftsbuddhistandtibetan-c-3_12.html http://www.handcrafteduk.com/


    The page I am trying to redirect from does still exist but I didn't think that would cause the problem?

    Any help appreciated.

    Many thanks,

    Gary

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,761
    Plugin Contributions
    9

    Default Re: Why wont this redirect work?

    Might review this
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^firstddomain.com$ [OR]
    RewriteCond %{HTTP_HOST} ^firstdomain-2.com$
    RewriteRule ^(.*)$ http://www.maindomain.com/$1 [R=301]
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2009
    Posts
    120
    Plugin Contributions
    0

    help question Re: Why wont this redirect work?

    Hi Kobra,

    Thanks for the reply. I've got that and it still does it. The strange thing is that other redirects work.

    Here's an example:

    redirect 301 /10ostrichfeathers-p-246.html http://www.handcrafteduk.com/whiteos...ers-p-246.html
    redirect 301 /ethnicgiftsrussian-c-3_14.html http://www.handcrafteduk.com/ethnicg...ls-c-3_14.html

  4. #4
    Join Date
    Feb 2009
    Posts
    120
    Plugin Contributions
    0

    Default Re: Why wont this redirect work?

    I've just tried to do it through my cpanel and got the following message:

    Apache detected an error in the Rewrite config.

    Syntax error on line 71 of /home/user/public_html/.htaccess.LxU3vrTy3cQiojBFbLXf2ZYuUw39XW5y:
    RewriteCond> directive missing closing '>'

    Please try again.




    Any ideas?

  5. #5
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,009
    Plugin Contributions
    61

    Default Re: Why wont this redirect work?

    2 Things... redirect the live product is causing the loop... You see your SEO urls is also trying to redirect it.

    Try adding your redirect above the rewrite syntax for your SEO urls.

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  6. #6
    Join Date
    Feb 2009
    Posts
    120
    Plugin Contributions
    0

    Default Re: Why wont this redirect work?

    Quote Originally Posted by mprough View Post
    2 Things... redirect the live product is causing the loop... You see your SEO urls is also trying to redirect it.

    Try adding your redirect above the rewrite syntax for your SEO urls.

    ~Melanie
    Melanie, you only went and bloody did it. Thank you.

  7. #7
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,009
    Plugin Contributions
    61

    Default Re: Why wont this redirect work?

    Cheers!
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

 

 

Similar Threads

  1. Why doesn't this code I wrote work ?
    By royaldave in forum General Questions
    Replies: 1
    Last Post: 14 Mar 2014, 01:21 PM
  2. v150 why does this code not work?
    By nazca in forum General Questions
    Replies: 6
    Last Post: 9 Oct 2013, 02:19 PM
  3. Why won't this work?
    By Rkreutzer90 in forum Installing on a Windows Server
    Replies: 1
    Last Post: 6 Mar 2009, 08:55 AM
  4. OK...why didn't this work?
    By mzimmers in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 22 May 2008, 05:04 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