You cannot see this page without javascript.

2018.03.05 11:15

https , http, www

조회 수 52 추천 수 0 댓글 0

<IfModule mod_rewrite.c>

RewriteEngine on

 

RewriteRule ^ - [E=protossl]

RewriteCond %{HTTPS} on

RewriteRule ^ - [E=protossl:s]

 

# https 강제이동.

# RewriteCond %{HTTPS} !=on

# RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

# www 강제로 붙이기.

# RewriteCond %{HTTP_HOST} .

# RewriteCond %{HTTP_HOST} !^www\. [NC]

# RewriteRule ^ http%{ENV:protossl}://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

 

# www 가 붙어있으면 떼기.

# RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]

# RewriteRule ^ http%{ENV:protossl}://%1%{REQUEST_URI} [L,R=301]

 

</IfModule>

Who's DragonHaptic

profile