g1smd - 12:35 am on Jul 9, 2011 (gmt 0)
You need to read a few tutorials on mod_rewrite and on Regular Expressions.
The existing rule redirects any hostname request that is not exactly "www.example.com" to "www.example.com". The page detail is unchanged by the redirect.
You need additional code, maybe even additional rules, to cater for the other things as described above.