Forum Moderators: phranque

Message Too Old, No Replies

Redirect and 301

is it the same?

         

jcmiras

1:15 am on Aug 27, 2005 (gmt 0)

10+ Year Member



Will it be the same in the eye of the search engine? I use "Redirect" to redirect my old URL to a new one because it is easy to use than 301 redirect

jd01

1:25 am on Aug 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am not sure I understand the question...

If you are asking if a Redirect (mod_alias) and a Rewrite (mod_rewrite) are equivellent redirects from an external point of view - Yes they are.

Both will correctly default to a 302, undefined redirect, unless a specific code is designated. (307 temporary & 301 permanent)

Both will cause the browser address bar to change.

Both will be seen the same from an external perspective (EG Search Engines).

Justin

jcmiras

1:48 am on Aug 27, 2005 (gmt 0)

10+ Year Member



Thanks!

What I want is to redirect mydomain/folder/item/1/ to mydomain/book/item/1/
I`m trying to use 301 redirect

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /folder/item/[0-9]+)/\ HTTP/
RewriteRule ^(.*) /book/item/%1? [R=301,L]

But does`nt work. SO I use

Redirect /folder/item/([0-9]+)/ www.mydomain/book/item/([0-9]+)/

But according to my log "Redirect" is a 302-redirect which has some issue with Google. So I`m trying again to use 301-redirect which unfortunately, I dont know why it doesnt work.

jd01

2:14 am on Aug 27, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



How about this:

RewriteEngine on
RewriteRule ^folder/(.*) /book/$1 [R=301,L]

Does not appear to be a need for THE_REQUEST, because there should be no conflict, if I am understanding correctly.

Justin

jcmiras

2:40 am on Aug 27, 2005 (gmt 0)

10+ Year Member



Wow, thanks. It works.