lucy24 - 8:08 pm on Nov 20, 2012 (gmt 0)
You will probably need to use mod_rewrite for the mechanical part. But the first thing you need to do is figure out exactly what bad URLs are involved, and where they are coming from.
If they are bogus URLs --ones that you didn't make yourself, and didn't come from typos on a site you like-- you don't have to redirect them at all. Let them go to a well-earned 404.