Mobile redirect using htaccess works on http and not on https

Hi,

I am using the following script for Mobile Redirect.

RewriteEngine On
RewriteCond %{QUERY_STRING} !^desktop
RewriteCond %{HTTP_USER_AGENT} “android|blackberry|googlebot-mobile|iemobile|iphone|ipod|#opera mobile|palmos|webos” [NC]
RewriteRule ^$ https://www.mysite.com/mobile-site [L,R=302]

This script works when a user type “http://mysite.com” in mobile browser.

This script does not work when a user type "https://mysite.com in mobile browser.

Please help me to redirect on both condition with http and with https.

Waiting for response