본문으로 건너뛰기
Skillpedia
SEO75k · #3061

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/trailing-slash/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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 /page must 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.

repo: thedaviddias/Front-End-Checklist

인기도

GitHub 스타
75k
순위
#3061
라이선스
MIT
업데이트
2026. 10. 31.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬