Did you test with UseCanonicalName on
? Because I seem to remember that you may need to use ${HTTP_HOST}
for redirect matches when you have that set. I could be remembering wrong and I don't have an Apache to test with at the moment.
In either case, trying ${HTTP_HOST} for the RewriteCond and RewriteRule should work equally well here.