jdMorgan - 12:06 pm on Mar 27, 2010 (gmt 0)
The code is correct as posted, since a request for "example.com/?<anything or nothing>" *is* a request for the "home page." If this "doesn't work" on your site, then the problem is one of site design.
Again, you'd do well to stop for a few days, think about this very carefully, and then make a list of all "bad" URLs and their desired dispositions. Only with a very-solid list of requirements can any correct coded solution be created, and lack of solid requirements leads to too-long threads like this one.
"Searching around" is fine, as long as what you are reading are mod_rewrite and regular-expressions tutorials and documentation (such as that cited in our Forum Charter). mod_rewrite code tends to be extremely case-specific, and therefore, you may search for years before finding that the on-line resource with a solution that matches your problem most closely is... this thread.
There really is no alternative but to learn to read and write the code yourself, and that is what this forum is really intended to help you to do.