DEV Community

Hiromichi Yamada
Hiromichi Yamada

Posted on

Redirect to HTTPS

.htaccessに下記3行を追記

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

Top comments (0)