14.6 C
Vancouver
Thursday, May 23, 2024

Sending all requests from http to https

Must read

Add the following lines to the VirtualHost directive:
RewriteEngine on
# Redirect any traffic to https
RewriteRule ^/(.*)$ https://%{HTTP_HOST}/$1 [L,R]

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article