I have been checking webmaster tools and found that Google has picked up some soft 404s.
The weird thing is there are no such pages on my site and I dont know how Google has come up with these URLs.
There are over a dozen in total and here is a few examples:
www.mywebsite.com/products/manufacturers.php?&l=a www.mywebsite.com/products/manufacturers.php?&l=b www.mywebsite.com/products/manufacturers.php?&l=c
They basically just have a different variable at the end.
So I have tried doing a 301 redirect to our home page like so:
RedirectMatch 301 ^/products/manufacturers.php?&l=(.*)$ /
But it doesn't work it just send me to the custom error page because obviously the page its looking for doesn't exist.
I also tried a rewriteRule instead of a 301 redirect but that didn't work either.
Does anybody have any idea how I can make the redirect work so I can remove these from webmaster tools?