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

    help question 301 redirect not working

    Hello,

    After all the great advice I've received on this forum I thought I would ask one more question.

    I am trying to get google to do a 301 redirect to a page that has moved on my site. This is what I have in the .htaccess file:

    redirect 301 /pheasantfeathers-p-226.html http://www.handcrafteduk.com/ethnicg...rs-c-3_79.html

    It isn't working though. Does anyone know how I can solve this please?

    Many thanks,

    Gary

  2. #2
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: 301 redirect not working

    It may be that you are trying to get it to redirect a page which has been subject to SEO URLs Rewriting. This is not the original address of the page.

    Or it may simply be that you need to play with the order in which commands are placed in your .htaccess file, so that the redirect is called after the URL Rewriting takes place.

    Vger

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

    Default Re: 301 redirect not working

    Thanks. I ended up having to put some long code in that reads:


    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^pheasantfeathers\-p\-226\.html$ "http\:\/\/www\.handcrafteduk\.com\/ethnicgiftspheasantfeathers\-c\-3_79\.html" [R=301,L]


    Did the trick.

  4. #4
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: 301 redirect not working

    I'm trying to permanent redirect 301 my product page but it is not working..

    Old (removed product page) URL :
    http://www.all4coffee.com/impressa-s...sso-p-311.html

    The new product page I'm trying to permanet redirect to:
    http://www.all4coffee.com/jura-capre...uch-p-321.html

    I tried with:
    Redirect 301 /impressa-s9-automatic-jura-capresso-p-311.html http://www.all4coffee.com/jura-capre...uch-p-321.html

    and also with (which was the original URL before SEO friendly)
    /index.php?main_page=product_info&cPath=66&products_id=311

    Any advice? Please...

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

    Default Re: 301 redirect not working

    Have you tried:

    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^impressa-s9-automatic-jura-capresso\-p\-311\.html$ "http\:\/\/www\.all4coffee.com\.com\/jura-capresso-impressa-s9-one-touch\-p\-321\.html" [R=301,L]

  6. #6
    Join Date
    Jul 2007
    Posts
    154
    Plugin Contributions
    0

    Default Re: 301 redirect not working

    Quote Originally Posted by plymgary1 View Post
    Have you tried:

    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^impressa-s9-automatic-jura-capresso\-p\-311\.html$ "http\:\/\/www\.all4coffee.com\.com\/jura-capresso-impressa-s9-one-touch\-p\-321\.html" [R=301,L]
    Yes, but it didn't work for me. But this one did!
    RewriteCond %{HTTP_HOST} ^.*$
    RewriteRule ^impressa\-s9\-automatic\-jura\-capresso\-p\-311
    "http\:\/\/www\.all4coffee\.com\/jura\-capresso\-impressa\-s9\-one\-touch\-p\-321\.html"
    [R=301,L]

    Thanks for responding!

 

 

Similar Threads

  1. v151 redirect 301 is not working
    By cvandijk in forum Basic Configuration
    Replies: 3
    Last Post: 23 Oct 2013, 09:19 PM
  2. 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
  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