Answers for "Setup 301 redirects from HTTP to HTTPS or consider HSTS"

PHP
1

301 redirect http to https

#For apache .htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
Posted by: Guest on October-02-2020

Code answers related to "Setup 301 redirects from HTTP to HTTPS or consider HSTS"

Browse Popular Code Answers by Language