12.9 C
Vancouver
Friday, April 19, 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