g1smd - 6:15 pm on Jul 8, 2011 (gmt 0)
Your non-www to www code is non-optimal. It fails to redirect www requests with appended port numbers.
There's just over 10 000 posts with example code for "redirects with parameters" shown here in the WebmasterWorld Apache forum. It's a question that is asked several times per week.