RewriteEngine on Options +FollowSymLinks Order allow,deny Allow from all RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]