htaccess redirect from /page-title?page=# to /page-title

I'm trying to create an htaccess rule to 301 redirect any page that ends with ?page=# (ie., where # can range from 1-9, to just the /page-title part.
Who is Participating?
techcsmConnect With a Mentor Author Commented:
Nevermind, solved this own my own in the interim:

# redirect paginated pages
RewriteCond %{QUERY_STRING} page=
RewriteRule (.*) /$1? [R=301,L]
techcsmAuthor Commented:
No response from EE so did additional research and come up with a working solution.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.