Answers for "RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]"

3

force https

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

Code answers related to "RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]"

Browse Popular Code Answers by Language