Recently migrated from blogger to wordpress. Have removed some content and want to redirect search engine results to my main page, so users don't get a 404 error.
example of old content
www.mysite.co.uk/pics/picture.jpg?test=y&anothertest=y
I want to redirect any requests to /pics/* to www.mysite.com
currently using the following in htaccess file
RedirectMatch 301 /pics/(.*) h ttp://www.mysite.co.uk
this works fine for something like
www.mysite.co.uk/pics/picture.jpg
but not for
www.mysite.co.uk/pics/picture.jpg?test=y&anothertest=y
I end up with the following page, resulting in a 404 error
www.mysite.co.uk/?test=y&anothertest=y
How do I stop the ? string from being used for this redirect?