Answers for "htaccess file to force https"

0

htaccess force ssl

Drop this in a .htaccess file to redirect http to https

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Posted by: Guest on March-23-2021

Browse Popular Code Answers by Language