Nginx 설정

인덱스 페이지 + PHP 작업

if($_SERVER['HTTPS']!=='on'){
   header('Location: https://'.$_SERVER["HTTP_HOST"].$_SERVER['REQUEST_URI']);
}

https가 아닐 경우 https로 리다이렉트하는 방법

추천한 사람

 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기
array(3) { [0]=> object(stdClass)#934 (3) { ["regdate"]=> int(0) ["unique_visitor"]=> int(3835398) ["pageview"]=> int(73016357) } [20230329]=> object(stdClass)#930 (3) { ["regdate"]=> int(20230329) ["unique_visitor"]=> int(678) ["pageview"]=> int(2397) } [20230330]=> object(stdClass)#937 (3) { ["regdate"]=> int(20230330) ["unique_visitor"]=> int(499) ["pageview"]=> int(2667) } }