ServerAdmin webmaster@localhost RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] # vim: syntax=apache ts=4 sw=4 sts=4 sr noet