SSL all the time for Drupal 7 on Dreamhost

I have started to move over to SSL all the time for my domains, starting with my current project - a website for my wife's art @ which is not out in the public interwerbs quite yet, so stay tuned. So, here is what  I have come up with in order to have SSL all the time on my Drupal sites on Dreamhost.

I think I have figured it out in three steps:

  1. For the domain I set the URL to rewrite to www.
  2. In Drupal's settings.php I set the base URL to
  3. In your site's .htaccess I added the following code from this Drupal Form comment:

    # Various rewrite rules.
    <IfModule mod_rewrite.c>
      RewriteEngine on

    RewriteCond %{HTTPS} off
      RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    # Set "protossl" to "s" if we were accessed via https://.  This is used later
      # if you enable "www." stripping or enforcement, in order to ensure that
      # you don't bounce between http and https.
      RewriteRule ^ - [E=protossl]
      RewriteCond %{HTTPS} on
      RewriteRule ^ - [E=protossl:s]

    # Make sure Authorization HTTP header is available to PHP
      # even when running as CGI or FastCGI.
      RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

I just started with this and it seems to be working just fine so far. We shall see how it works.