http-to-https
하는 일
이 스킬은 웹 서버가 일반 HTTP 방문을 보안 HTTPS 주소로 보내는지 확인합니다. 웹사이트를 운영하는 사이트 운영자와 개발자를 위한 것입니다.
사용하는 경우
- ✓방문자가 https 없이 도메인을 입력해 안전하지 않은 버전에 도착할 때.
- ✓오래된 링크가 아직 일반 http 주소를 가리킬 때.
- ✓새 서버나 호스팅 업체를 설정할 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/http-to-https/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“제 웹사이트의 모든 http 방문이 https로 리디렉션되도록 해 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 일반 주소가 전체 경로를 유지한 채 일치하는 HTTPS 주소로 보내는 301 리디렉션으로 응답하는지 확인합니다. 서버나 CDN 수준에서 설정하고 명령줄 요청으로 테스트하도록 제안합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Redirect HTTP to HTTPS
Without an HTTP-to-HTTPS redirect, users who type the domain without https:// or follow old links land on the insecure version of the site, exposing session cookies and form data to network attackers.
Quick Reference
- Redirect
http://example.comtohttps://example.comwith HTTP 301 (permanent redirect) - Preserve the full path and query string in the redirect:
https://$host$request_uri - Use 301 (not 302) so browsers and search engines cache the redirect and future requests go directly to HTTPS
- Configure redirects at the server/CDN level — never rely on client-side JavaScript for security redirects
- After validating HTTPS works, add HSTS to eliminate future HTTP requests entirely
Check
Test whether http://example.com redirects to https://example.com with a 301 status code. Check that the full URL path and query string are preserved in the redirect Location header.
Fix
Configure the web server to redirect all HTTP requests to HTTPS with a 301 status code, preserving the full request path. Verify the redirect with curl -I http://example.com.
Explain
Explain why redirecting HTTP to HTTPS is necessary, the difference between 301 and 302 redirects, and how HSTS can eliminate the redirect for returning users.
Code Review
Review server config, headers, forms, and integration points related to Redirect HTTP to HTTPS. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/security/http-to-https
자주 묻는 질문
왜 302가 아니라 301인가요?
스킬은 301이 영구적이어서 브라우저와 검색엔진이 이를 저장하고 앞으로 바로 HTTPS로 이동한다고 설명합니다.
리디렉션을 JavaScript로 해도 되나요?
아닙니다. 스킬은 보안 리디렉션은 클라이언트 코드가 아니라 서버나 CDN에서 설정해야 한다고 설명합니다.
리디렉션 설정 후에는 무엇을 하나요?
스킬은 앞으로 일반 HTTP 요청을 막기 위해 HSTS를 추가하라고 제안합니다.
상세 정보
작성자의 원본 설명
Use when checking whether a web server is configured to redirect all HTTP traffic to HTTPS.
인기도
- GitHub 스타
- 75k
- 순위
- #2876
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.