Force redirect from http to https

PHOTO EMBED

Fri May 28 2021 11:05:45 GMT+0000 (Coordinated Universal Time)

Saved by @dphillips #htaccess #webserver #http

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
content_copyCOPY

https://stackoverflow.com/a/4083233