redirect 176 B

12345678
  1. <VirtualHost *:80>
  2. ServerName <enter dns name>
  3. RewriteEngine on
  4. ReWriteCond %{SERVER_PORT} !^443$
  5. RewriteRule ^/(.*) https://%{HTTP_HOST}/$1 [NC,R,L]
  6. </VirtualHost>