We have some old URL's all over our website in the following format that we are trying to just redirect to the home page as they are giving page cannot be found errors:
http://www.oursite.com/go/base?id=XXX (XXX is a different set of letters in each URL and there are hundreds of them)
How would I go about redirecting something like this to the home page. I've tried this so far:
rewrite ^/go/.*$ http://www.oursite.com/ permanent;
This kind of works, but it redirects to the home page like this:
http://www.oursite.com/?id=XXX (we don't want it to show the ?id=XXX)
Any input is greatly appreciated.