----[ from the vhost file ]---- <VirtualHost *:80>... <Directory "/data01/t-drv/websites/sma-v3"> # Always use a secure connection RewriteEngine On RewriteCond %{SERVER_PORT} =80 RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L]