I couldn’t find an accurate solution for this on SO.
I have a WordPress site that needs any URL that contains /blog/?p* to redirect to /blog
The * denotes the wildcard point. So any URL that starts with /blog/?p gets redirected.
RewriteRule ^/blog/?p.*$ http://shorelinesightseeing.com/blog
But that didn’t work.
Read more here: Wildcard redirect at end of url in .htaccess