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.

I’ve tried:

RewriteRule ^/blog/?p.*$ http://shorelinesightseeing.com/blog

But that didn’t work.

Read more here: Wildcard redirect at end of url in .htaccess


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , ,

Wordpress related questions and answers: