반응형
http접속시 https redirect
<%
nowprotocol = Request.ServerVariables("HTTPS")
If Request.ServerVariables("SERVER_PORT")=80 Then
Dim strSecureURL
strSecureURL = "https://"
strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & Request.ServerVariables("URL")
Response.Redirect strSecureURL
End If
%>
반응형
'프로그래밍 > ASP' 카테고리의 다른 글
| asp xml 페이지 생성 (0) | 2017.03.27 |
|---|---|
| asp 커리어넷 오픈api 학교주소검색 xml가져오기 (0) | 2017.03.20 |
| asp 오류페이지 한글깨짐현상 (0) | 2017.02.20 |
| asp javascript json array parse 파싱 후 출력하기 (2) | 2016.12.22 |
| asp mail cdo.message 카페24서버 발송 (0) | 2016.09.30 |