https www 강제로 붙이기 .htaccess
- 프로그래밍/개발새발
- 2021. 5. 22.
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
(구버전)
<IfModule mod_rewrite.c>
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L,NE]
</IfModule>
---
원본
https://xetown.com/tips/147293
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
'프로그래밍 > 개발새발' 카테고리의 다른 글
윈도우 php mysqli 오류 (0) | 2021.09.13 |
---|---|
서버간 토큰 통신 jwt (0) | 2021.07.21 |
암호화 bcrypt (0) | 2021.05.04 |
압타나 설치 오류 (0) | 2021.05.03 |
apache 로그 분석 통계 툴 소개 - awstats (0) | 2019.10.04 |