Pretty simple concept, but it has me stumped.. How do I redirect all site.com/?pages to just site.com? It's basically any page that starts with a question mark. Everything I've tried doesn't seem to work.
Apparently, apache 2 does not aply any rewrite rules if requested url has no path like /file or /dir. It skips rewriting if it is merely a query string. You better do it inside a php script.