카테고리 없음

php https 강제 변경 (리다일렉트)

달남 2020. 8. 26. 09:32

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