Having said that I don't see anything obviously wrong with what you showed us other than you probably should be using %{HTTP_HOST} and the RewriteRule statement is needlessly complicated (but then so are most of the examples I saw from the google search recommended).
--
Kurtis Rader
Caretaker of the exceptional canines Junior and Hank