(❀╹◡╹)
[ASP] https redirect 처리 본문
If Request.ServerVariables("HTTPS") = "off" Or Instr(Request.Servervariables("SERVER_NAME"),".com") Then
Dim redirect_url
redirect_url = "https://" & Request.Servervariables("SERVER_NAME") & Request.ServerVariables("SCRIPT_NAME")
redirect_url = Replace(redirect_url, ".com", ".co.kr")
If Request.ServerVariables("QUERY_STRING") <> "" Then
redirect_url = redirect_url & "?" & Request.ServerVariables("QUERY_STRING")
End If
Response.Redirect redirect_url
End If
'Programing > WEB' 카테고리의 다른 글
| [PHP] 한글로 시작하는 파일명, IE에서 pathinfo 사용 시 문제점 해결 (0) | 2020.08.19 |
|---|---|
| [jQuery] sortable width fix (0) | 2020.08.19 |
| [PHP] Instagram Refresh Access Token (0) | 2020.07.29 |
| [PHP] instagram, facebook API - CURL 속도 개선 (0) | 2020.07.23 |
| [PHP] Youtube API - 동영상 목록 가져오기 (1) | 2020.07.22 |