728x90
If Request.ServerVariables("HTTPS") = "off" Then
Response.Redirect("https://" & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("URL"))
End If
IIS를 설정할 수도 없고 .htaccess가 작동하는 환경도 아니고 해서 공통적으로 불러오는 코드 상단에 입력하면 됩니다.
반응형
'Programming > Etc.' 카테고리의 다른 글
[HTML]textarea에서 placeholder 줄 나눔(br) (0) | 2024.03.12 |
---|---|
크롬 개발자 도구가 자꾸 꺼진다면? (0) | 2024.03.11 |