trailing-slash
하는 일
이 스킬은 사이트가 끝에 슬래시가 있거나 없는 하나의 URL 방식을 일관되게 쓰는지 확인합니다. 검색에서 중복 페이지를 피하려는 사이트 운영자와 개발자를 위한 스킬입니다.
사용하는 경우
- ✓같은 페이지가 끝에 슬래시가 있는 주소와 없는 주소로 모두 열릴 때.
- ✓내부 링크, 사이트맵, canonical 태그가 서로 다른 URL 방식을 쓸 때.
- ✓새 플랫폼으로 옮기면서 URL 규칙이 바뀌었을 수 있을 때.
스킬 링크
https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/trailing-slash/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“구글에 일부 페이지가 끝에 슬래시가 있는 주소와 없는 주소로 두 번 나옵니다. URL을 고쳐 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 두 URL 버전을 모두 테스트하고 내부 링크와 사이트맵을 확인합니다. 그다음 선호하는 하나의 방식을 권장하고, 다른 쪽에서는 영구 리디렉션을 걸도록 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Use trailing slashes consistently
Inconsistent trailing slashes create duplicate content — Google sees /page and /page/ as two separate URLs competing for the same ranking, splitting PageRank between them.
Quick Reference
- Pick one convention — trailing slash or no trailing slash — and enforce it site-wide with 301 redirects
- Both
/page/and/pagemust not return HTTP 200; one must redirect to the other - Set
rel="canonical"to the preferred version on all pages - Ensure all internal links, sitemaps, and canonical tags use the same convention
Check
For a sample of URLs, test both the trailing-slash and non-trailing-slash versions. Both should NOT return HTTP 200 — one must 301-redirect to the other. Check that internal links, sitemap <loc> values, and canonical tags all use the same convention consistently.
Fix
Choose a canonical URL convention. Add server or framework redirect rules so the non-preferred variant permanently redirects (301) to the preferred one. Update all internal links, canonical tags, and sitemap entries to use the preferred format.
Explain
Explain why /page and /page/ are treated as distinct URLs by default, how this creates duplicate content, and how 301 redirects and canonical tags resolve the ambiguity.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to Use trailing slashes consistently. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/trailing-slash
자주 묻는 질문
두 URL은 왜 다르게 취급되나요?
기본적으로 검색엔진은 /page와 /page/를 서로 다른 주소로 보므로, 순위 신호가 나뉩니다.
중복은 어떻게 해결하나요?
이 스킬은 선호하지 않는 버전에서 301 리디렉션을 걸고, 페이지에 canonical 태그를 두라고 권장합니다.
사이트맵도 함께 고쳐야 하나요?
네. 사이트맵 항목도 선호하는 URL과 같은 형식을 써야 한다고 이 스킬은 말합니다.
상세 정보
작성자의 원본 설명
Use when applies to all static and dynamic websites. Use when auditing a site for duplicate content, setting up a new site, or after migrating platforms that changed URL conventions.
인기도
- GitHub 스타
- 75k
- 순위
- #3061
- 라이선스
- MIT
- 업데이트
- 2026. 10. 31.
댓글
- …
이 저장소의 다른 스킬
frontendchecklist
75k명령줄 도구를 사용해 380개가 넘는 규칙으로 프런트엔드 코드와 실시간 페이지를 접근성, 속도, SEO, 보안 측면에서 점검합니다.
frontend-checklist-global
75kFront-End Checklist의 386개 규칙 전체로 프런트엔드 프로젝트를 감사하고, 발견한 문제마다 구체적인 해결 방법을 제시합니다.
404-page
75k없는 페이지 화면에 도움이 되는 링크가 있고 실제 404 상태 코드를 반환하는지 확인해, 길을 잃은 방문자를 돕습니다.
about-page
75k사이트를 운영하는 사람을 설명하는 명확한 소개 페이지가 있는지 검토해, 방문자와 검색 엔진의 신뢰를 높입니다.
비슷한 스킬
competitive-platform-analysis
280k경쟁사를 식별하고 분류하며 걸러내 더 깊은 분석을 하기 전에 경쟁 구도를 이해하도록 돕습니다.
competitive-report-structure
280k경쟁사 정보를 결합해 전체 시장 현황과 추천 사항을 보여 주는 종합 보고서를 만들고, 팀의 방향을 맞추도록 돕습니다.
lead-intelligence
280k중요한 사람을 찾고 연락하도록 에이전트를 돕습니다. 잠재 고객을 분석하고 접근 방법을 제안하며, 이메일과 소셜 미디어를 통한 연락을 관리합니다.