Apache: check https and use it inside .htaccess