Answer the question
In order to leave comments, you need to log in
Redirect pages of pagination section with GET-variable?
There are addresses like:
site.ru/articles/news?page=N
site.ru/news/page/N
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} page=(\d+) [NC]
RewriteRule ^articles/news /news/page/%1 [R=301,L]
http://site.ru/articles/news?page=2
http://site.ru/news/page/2?page=2
http://site.ru/news/page/2
Answer the question
In order to leave comments, you need to log in
solution found:
RewriteCond %{QUERY_STRING} page=(\d+) [NC]
RewriteRule ^articles/news /news/page/%1? [R=301,L]
The question mark is needed, it removes the bucket at the end.
1 robots.txt - disable all queries with page=
2. real canonical to the main page
3. redirect actually ;) if from an old site
4. close page with ajax.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question