Answer the question
In order to leave comments, you need to log in
How to redirect page=1 to without it?
I have 2 codes and both of them fail in that they redirect ?page=15 to ?5
#RewriteCond %{QUERY_STRING} ^(.*)&?page=1(.*)$
#RewriteRule ^(.*)/ ?$ /$1?%1%2 [R=301,L]
RewriteCond %{QUERY_STRING} ^page=1$
RewriteRule (.*) $1? [L,R=301]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question