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

hyphens

하는 일

이 스킬은 사이트의 웹 주소를 확인하고, 밑줄이나 공백 대신 하이픈을 쓰도록 제안합니다. 검색을 위해 더 명확한 URL을 원하는 사이트 운영자를 위한 것입니다.

사용하는 경우

  • ✓페이지 주소가 단어를 나누는 데 밑줄을 쓸 때.
  • ✓새 URL 구조나 슬러그 형식을 계획할 때.
  • ✓밑줄 URL 페이지를 하이픈 URL로 옮길 때.

스킬 링크

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/hyphens/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

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

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

AI에게 요청하는 예시

“제 페이지 주소를 확인하고 밑줄을 하이픈으로 바꿔 주실 수 있나요?”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 URL 경로에서 밑줄, 인코딩된 공백, 섞인 구분 기호를 찾습니다. 하이픈이 들어간 버전과, 기존 링크를 계속 작동하게 하는 데 필요한 301 리디렉션을 제안합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Use hyphens in URLs

Google's search systems interpret hyphens in URLs as word boundaries, enabling it to match the URL against individual keyword queries. Underscores join words into a single token, meaning /seo_practices is seen as one word 'seopractices' rather than two separate words 'seo' and 'practices'.

Quick Reference

  • Use hyphens (-) to separate words in URLs — Google treats hyphens as word separators, underscores as part of the word
  • /best-seo-practices is better than /best_seo_practices or /bestseopractices
  • Changing existing URLs from underscores to hyphens requires 301 redirects to preserve link equity

Check

Inspect the URL path segment of each page. Flag any URL that contains: (1) Underscores (_) as word separators (e.g., /best_practices). (2) Spaces encoded as %20 or + in path segments. (3) Mixed separators in the same URL (e.g., /best-practices_guide). Report the count of non-hyphenated URLs by category.

Fix

  1. Identify all pages with underscores or spaces in URL path segments.
  2. Generate the hyphenated equivalent: replace _ with -, spaces/%20 with -.
  3. Set up 301 permanent redirects from the old URLs to the new hyphenated URLs.
  4. Update internal links throughout the site to point to the new URLs.
  5. Submit the new URLs to Google Search Console for re-indexing.
  6. Update your sitemap.xml to include only the new hyphenated URLs.
  7. In your CMS or slug-generation function, enforce hyphens going forward:
    • Slug: title.toLowerCase().replace(/\s+/g, '-').replace(/[^a-z0-9-]/g, '')

Explain

Google's John Mueller has confirmed that Google interprets hyphens as word separators in URLs, but treats underscores as word joiners. This means a URL with underscores matches fewer individual keyword queries. For example, /web_design would match 'web_design' as a single token, while /web-design matches both 'web design' and 'webdesign' queries.

Code Review

Parse all URL paths used in the application's router or CMS slug fields. Flag any path segment containing _ characters between words or any %20 space encoding. Verify slug-generation utilities produce lowercase hyphenated output. Check redirect rules to confirm old underscore URLs are permanently (301) redirected to their hyphenated equivalents.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/seo/hyphens

자주 묻는 질문

하이픈이 밑줄보다 나은 이유는 무엇인가요?

스킬은 Google이 하이픈을 단어 경계로 읽는 반면, 밑줄은 단어를 하나의 토큰으로 묶는다고 설명합니다.

변경 후 예전 URL은 어떻게 하나요?

스킬은 예전 주소에서 301 리디렉션을 걸고, 내부 링크와 사이트맵도 업데이트하라고 제안합니다.

새 URL을 제출해야 하나요?

스킬은 새 URL을 Google Search Console에 제출해 다시 색인되도록 하라고 제안합니다.

상세 정보

작성자의 원본 설명

Use when auditing URL structures for word separator format, generating slugs from titles, or planning a URL migration from underscores or spaces to hyphens with appropriate redirects.

repo: thedaviddias/Front-End-Checklist

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬