I have an old wordpress blog that no longer exists, and I want to redirect all requests to any of those articles to the main page of my new blog.
So far, I have this:
- Code: Select all
RewriteRule ^blog-news.*$ http://www.mydomain.com/more/news/ [R=301,NC,L]
The following requests will succesfully be redirected:
www.mydomain.com/blog-news
www.mydomain.com/blog-news/
www.mydomain.com/blog-news/any-text-here
They are succesfully redirected to:
www.mydomain.com/more/news/
The problem is that the following request does NOT get redirected properly:
www.mydomain.com/blog-news/?p=123
It improperly gets redirected to this:
www.mydomain.com/more/news/?p=123
When it should instead go here, like the others:
www.mydomain.com/more/news/
Why does the ?p=123 get passed thru to the redirect?
How do I stop it from doing that?
Thanks