HighDots Forums  

.htaccess redirection and google SE

Search Engine Optimization Discussion about SEO/Search Engine Optimization (alt.internet.search-engines)


Discuss .htaccess redirection and google SE in the Search Engine Optimization forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Hieu
 
Posts: n/a

Default .htaccess redirection and google SE - 01-09-2006 , 07:45 AM






I have a question but can't find answer anywhere.

Say I use htaccess to redirect from "http://mysite/blah/1" to
"http://mysite/index.php?action=blah&id=1"

When google SE reaches the first link, it will be redirected to the
second one. So now which one of the two will be considered?


Reply With Quote
  #2  
Old   
Roy Schestowitz
 
Posts: n/a

Default Re: .htaccess redirection and google SE - 01-09-2006 , 11:02 AM






__/ [Hieu] on Monday 09 January 2006 12:45 \__

Quote:
I have a question but can't find answer anywhere.

Say I use htaccess to redirect from "http://mysite/blah/1" to
"http://mysite/index.php?action=blah&id=1"

When google SE reaches the first link, it will be redirected to the
second one. So now which one of the two will be considered?
Hi,

When you say "will be considered?", do you mean indexed as the primary page?
Do you mean listing for a particular search phrase? The 'channelling' of
human visitors? Any issues pertaining to ranks, e.g. passing PageRank from
one page to another? The answer is usually "yes" and "it works", if done
properly and simply, i.e. no excessive re-directions.

Hope it helps,

Roy


Reply With Quote
  #3  
Old   
Hieu
 
Posts: n/a

Default Re: .htaccess redirection and google SE - 01-09-2006 , 11:09 AM



My concern is to make a nice looking URL. Since my page operates mostly
on index.php with a whole bunch of variables after that. I don't know
if using the redirect link like that is worth or not. Thanks.


Reply With Quote
  #4  
Old   
Roy Schestowitz
 
Posts: n/a

Default Re: .htaccess redirection and google SE - 01-09-2006 , 11:18 AM



__/ [Hieu] on Monday 09 January 2006 16:09 \__

Quote:
My concern is to make a nice looking URL. Since my page operates mostly
on index.php with a whole bunch of variables after that. I don't know
if using the redirect link like that is worth or not. Thanks.
http://www.safalra.com/special/googlegroupsreply/ . Please.

Are you sure that in your original message you listed the URL's in the right
order? It seemed as if you re-directed from an elegant URL to index with
some extra arguments that might look rather nasty to some visitors. It might
not help with search engines either, but the impact is minor. Have you
considered using mod_rewrite instead of a redirection?

Roy


Reply With Quote
  #5  
Old   
Hieu
 
Posts: n/a

Default Re: .htaccess redirection and google SE - 01-09-2006 , 11:52 AM



Sorry for the confusion. I used mod_rewrite, not redirection.

My rewriterule is like
RewriteRule ^(.+?)/(.+?)/ index.php?action=$1&id=$2 [R=301]


Reply With Quote
  #6  
Old   
Justin Koivisto
 
Posts: n/a

Default Re: .htaccess redirection and google SE - 01-09-2006 , 12:02 PM



Hieu wrote:
Quote:
Sorry for the confusion. I used mod_rewrite, not redirection.

My rewriterule is like
RewriteRule ^(.+?)/(.+?)/ index.php?action=$1&id=$2 [R=301]

Ahh, using rewrite... (was waiting to see that)

Change the rewriterule to:

RewriteRule ^(.+?)/(.+?)/ index.php?action=$1&id=$2 [L]

Then search engines will index it under the URL that you use for
links/addresses (ie. example.com/directory/page/)

Otherwise, if you flag the rule as R=301, the search engines use the
ugly uri instead because the 301 header tells the search engine that the
page it requested has been "Moved Permanently"

See here for HTTP response codes:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

--
Justin Koivisto, ZCE - justin (AT) koivi (DOT) com
http://koivi.com


Reply With Quote
  #7  
Old   
Hieu
 
Posts: n/a

Default Re: .htaccess redirection and google SE - 01-09-2006 , 12:18 PM



OK, I think I figure out a little bit. Let me restate it to see if my
understand is correct:

With [R=301], HTTP 301 will be in the header response back to the SE.
So, SE will eventually delete my "From" page ( mysite/blah/id ) from
its cache or whatever. (aka. it doesn't help my search ranking)


Reply With Quote
  #8  
Old   
Justin Koivisto
 
Posts: n/a

Default Re: .htaccess redirection and google SE - 01-09-2006 , 12:45 PM



Hieu wrote:
Quote:
OK, I think I figure out a little bit. Let me restate it to see if my
understand is correct:

With [R=301], HTTP 301 will be in the header response back to the SE.
So, SE will eventually delete my "From" page ( mysite/blah/id ) from
its cache or whatever. (aka. it doesn't help my search ranking)

correct

--
Justin Koivisto, ZCE - justin (AT) koivi (DOT) com
http://koivi.com


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.