in reply to mod_perl module to redirect http to https prior to login
RewriteEngine On RewriteCond %{HTTPS} ^$ RewriteRule (.*) https://domain.com/directory/$1 [L] [download]