hi
I want to add force HTTPS redirect in vhost without using web admin because my web admin is open in read-only mode.
is there any way to force HTTPS redirect like we do in apache Redirect permanent / https://domain.com/
I have added this in my vhost but it does not work
rewrite {
enable 1
RewriteCond %{SERVER_PORT} ^80$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
}
I want to add force HTTPS redirect in vhost without using web admin because my web admin is open in read-only mode.
is there any way to force HTTPS redirect like we do in apache Redirect permanent / https://domain.com/
I have added this in my vhost but it does not work
rewrite {
enable 1
RewriteCond %{SERVER_PORT} ^80$
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
}