“Force SSL” Kode Jawaban

Force .htaccess

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Ugliest Unicorn

memaksa https

RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
KINGASv

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]
Agreeable Ant

Force SSL

Updated 2021

RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Outstanding Ocelot

Jawaban yang mirip dengan “Force SSL”

Pertanyaan yang mirip dengan “Force SSL”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya