I know there are a few of these, but I can't find one that describes what I want to do.
I've got an page that I want to retire, for example:
www.mysite.com/pages/page_old.php?someargs
I'd like the _old to be stripped off, so the page goes to
www.mysite.com/pages/page.php?someargs
I've tried
RewriteEngine On
RewriteBase /
RewriteRule ^/pages/page_old.php$ ^/pages/page.php$ [L,R=301]
but it doesn't work.
Worth noting that ?someargs can be any args passed to the page, so this must be flexible.