DreamHost HTTPS Setup

HTTPS

Code

# Forcing the domain to serve securely using HTTPS
# http://wiki.dreamhost.com/Htaccess_tricks
# place this code in: .htaccess file at root level of website.

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