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
|
|