Drupal HTTPS Redirect Via .htaccess

So you got a ssl cert. and need to rediect to https ? cool in your Drupal .htaccess file do this :

  RewriteCond %{HTTPS} off [OR]
  RewriteCond %{HTTP_HOST} ^yoursite.com\.com*
  RewriteRule ^(.*)$ https://www.yoursite.com/$1 [L,R=301]

 # Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
Category: