My blog is creating duplicate pagination, and Google understands this as duplicate content. How to 301 redirect pagination as in the following examples?
https://example.com/page/33?page=34
to:https://example.com/page/33
https://example.com/page/23?page=25
to:https://example.com/page/23
I need redirect all ?page=
to your correct link /number
Recently, I was able to remove broken links ?m=0
with:
RewriteCond %{QUERY_STRING} ^m=[01]$
RewriteRule (.*) /$1? [R=301,L]