g1smd - 8:37 pm on Oct 15, 2012 (gmt 0)
Use example.com in this forum to suppress URL auto-linking.
There's a lot of errors in there, not least the .* in the middle of the index RewriteCond pattern and the beginning of the index RewriteRule pattern.
The non-www redirect fails to redirect many requests, such as those with port numbers and others.
The correct code has been published several times so far this month. Its a regular question here.