Mod_rewrite http to https

Hi Team,

I have a question on the apache mod_rewrite module. I have a requirement of rewriting only specific url's to https.

Requirement below:-

want to match a word (test) on the url and if matches then it should rewrite to https.

example:-

http://[URL="http://www.testing.com/xxx/yyy/test/zzz.html"]www.testing.com/xxx/yyy/test/zzz.html should rewrite to https://www.testing.com/xxx/yyy/test/zzz.html

the rewrite rule should match the word "test" and if the requesting url is having the word test then it should rewrite to https else all should be http.

Regards,
arumon

Any one???