Q&A

www제거 .htaccess 수정

2018.04.02 14:33
363
0

http://aaa.com/mid

http://www.aaa.com/mid

으로 접속시 https://aaa.com/mid 접속되게 하고 싶습니다.

 

 

RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

이걸 사용해서 http://aaa.com/mid 접속시 https://aaa.com/mid 접속이 되는데

www 붙으면 작동을 안합니다 도와주세요!

 

http://www.aaa.com 자체로 접속이 안되네요.

alrin Lv. 4

댓글 7