Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i have multiple categories with pagination. wherein limitstart=0 are there and is similar like category home page

Wondering, should a 301 redirect through htaccess is advisable or shall i apply canonical tag to it

Second, below is the htaccess code for it. Need comments, is the regex ok

 RewriteCond %{QUERY_STRING} ^(.+)&limitstart=0$ [NC]
 RewriteRule (.*) /$1?%1&%2 [R=301,L]


share|improve this question

This is exactly what canonical URLs are for. In the example Google uses when they introduced them they showed a page where the content was the same but the sort order of a table was different. So pick the URL that will display all of the content available from the base URL and make that the canonical URL (i.e. the URL with no limit).

share|improve this answer
Thanks John, but as i have checked - have hundreds of categories. Is the above htaccess code for redirection seems correct, if have to go in for 301 redirect !! – Saahil Sinha Sep 9 '13 at 12:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.