
Apache + .htaccess
. htaccess 파일에 다음 규칙을 추가하여 강제할 수 있습니다.https액세스:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
수정된 . htaccess 파일은 다음과 같습니다.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# HTTPS 를 강제하기 위해 다음 규칙을 추가합니다.
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>






친구 등록