Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: .htaccess redirection and google SE

  • Subject: Re: .htaccess redirection and google SE
  • From: Justin Koivisto <justin@xxxxxxxxx>
  • Date: Mon, 09 Jan 2006 11:02:10 -0600
  • In-reply-to: <1136825534.864240.90080@z14g2000cwz.googlegroups.com>
  • Newsgroups: alt.internet.search-engines
  • References: <1136810743.546466.20750@g43g2000cwa.googlegroups.com> <dpu1h9$fts$2@godfrey.mcc.ac.uk> <1136822976.682449.171690@g49g2000cwa.googlegroups.com> <dpu2ea$fts$4@godfrey.mcc.ac.uk> <1136825534.864240.90080@z14g2000cwz.googlegroups.com>
  • User-agent: Mozilla Thunderbird 1.0.7 (Windows/20050923)
  • Xref: news.mcc.ac.uk alt.internet.search-engines:74494
Hieu wrote:
> 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@xxxxxxxxx
http://koivi.com

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index