A redirect to https?

#1
Hello, I wonder if there is any way to tell the vhost to only use https? And that all http-requests automatically redirects to https.

Or do i have to make a new vhost and use it on an HTTP-listener which only serves as a redirect-vhost?
 

Cold-Egg

Administrator
#2
Hi,

Generally you may want to map this virtual host on both HTTP/HTTPS listener, then add a force HTTPS rewrite rules on the virtual host or .htaccess file.
example rules:
Code:
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Best,
Eric
 
Top