My old Wordpress blog didn't use pretty permalinks and instead used the ugly query strings to determine the page/article. I have moved my blog from 'blog.domain.com' to 'newblog.domain.com' and I'm trying to redirect all old page URLs with the ugly query string to my new blog homepage. I want to do this for all query strings EXCEPT the Wordpress search query ?s=
How can I 301 redirect all query strings except the search query to my new blog homepage?
I know how to redirect ALL query strings, but how do I exclude only the search query?