Zen Cart Logo
Forums / General Questions / 301 redirect not working

301 redirect not working

Locked

Views: 1,091

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
9 Jul 2010, 2:52 PM
#1
plymgary1 avatar

plymgary1

Zen Follower

Join Date:
Feb 2009
Posts:
121
Plugin Contributions:
0

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/ethnicgiftspheasantfeathers-c-3_79.html

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

Many thanks,

Gary :smile:

9 Jul 2010, 5:17 PM
#2
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

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

9 Jul 2010, 6:58 PM
#3
plymgary1 avatar

plymgary1

Zen Follower

Join Date:
Feb 2009
Posts:
121
Plugin Contributions:
0

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. :smile:

9 Jul 2010, 9:19 PM
#4
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

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-s9-automatic-jura-capresso-p-311.html

The new product page I'm trying to permanet redirect to:
http://www.all4coffee.com/jura-capresso-impressa-s9-one-touch-p-321.html

I tried with:
Redirect 301 /impressa-s9-automatic-jura-capresso-p-311.html http://www.all4coffee.com/jura-capresso-impressa-s9-one-touch-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...

9 Jul 2010, 11:36 PM
#5
plymgary1 avatar

plymgary1

Zen Follower

Join Date:
Feb 2009
Posts:
121
Plugin Contributions:
0

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]

10 Jul 2010, 1:11 AM
#6
all4coffee avatar

all4coffee

Zen Follower

Join Date:
Jul 2007
Posts:
154
Plugin Contributions:
0

Re: 301 redirect not working

plymgary1:

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!:clap: