Answers for "automatically forwad to https htaccess"

1

htaccess for https

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
Header always set Content-Security-Policy "upgrade-insecure-requests;"
Posted by: Guest on September-25-2021

Browse Popular Code Answers by Language