To redirect al http traffic to https you have to put this code inside the virtualhost script
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]
Motorcycle rider
American football player
DIY enthusiast
Web developer on free time