Skip to main content
Beta: Front-End Checklist is currently in beta. Some issues are still being fixed. Thanks for your patience.
SEOMedium

Keep URLs concise

Checks URL length for optimal crawlability and usability

Utilities
Quick take
Typical fix time 10 min
  • Keep URL paths under 100 characters; Google recommends short, descriptive URLs without unnecessary parameters
  • Remove stop words (`the`, `a`, `of`, `in`) from slugs — `/guide-css-grid` is better than `/a-guide-to-css-grid`
  • Deeply nested paths (`/blog/2024/03/category/subcategory/post-title`) are harder to share and signal distance from the root
Why it matters: While Google has no strict URL length limit beyond technical constraints, long URLs with deep nesting, excessive parameters, or redundant words are harder for users to read, copy, and share. Google's John Mueller has confirmed that shorter, cleaner URLs are easier to understand and may perform slightly better in search.

Rule Details

URL length and structure affect readability, shareability, and how easily crawlers navigate your site. Google's URL structure guidance (opens in new tab) favors short, descriptive paths, and the same cleanup work usually overlaps with stop-word removal and other slug-hygiene rules.

Code Examples

❌ Avoid — long slug with stop words

/blog/a-comprehensive-step-by-step-guide-to-the-basics-of-css-grid-layout-for-beginners

❌ Avoid — deep nesting with date components in evergreen content

/blog/2024/03/15/technology/css/a-guide-to-css-grid

✅ Correct — concise descriptive slug

/blog/css-grid-guide

✅ Correct — flat category structure

/css-grid-guide          (no category prefix if not needed)
/blog/css-grid           (one level of category)
/docs/css/grid-layout    (two levels for documentation is fine)

✅ Slug generation — removing stop words

const STOP_WORDS = new Set([
  'a', 'an', 'the', 'and', 'or', 'but', 'in', 'on', 'at',
  'to', 'for', 'of', 'with', 'how', 'what', 'your', 'is'
])
 
function toSlug(title) {
  return title
    .toLowerCase()
    .split(/\s+/)
    .filter(word => !STOP_WORDS.has(word))
    .join('-')
    .replace(/[^a-z0-9-]/g, '')
}
 
toSlug('A Comprehensive Guide to the Basics of CSS Grid')
// → 'comprehensive-guide-basics-css-grid'

✅ Next.js — concise dynamic routes

// Prefer flat routes:
// app/blog/[slug]/page.tsx → /blog/css-grid-guide
 
// Over deeply nested routes:
// app/blog/[year]/[month]/[category]/[slug]/page.tsx
// → /blog/2024/03/css/css-grid-guide

Why It Matters

  • Readability: Short URLs are easier to copy, share, and remember, leading to more organic sharing.
  • Crawl efficiency: Deeply nested URLs signal larger crawl distance from the root, potentially reducing crawl frequency for deep pages.
  • Search snippet display: Long URLs are truncated in search results, making the displayed breadcrumb less informative and often creating the same usability issues as inconsistent lowercase URL handling.

URL Length Guidelines

Path lengthStatus
Under 60 charactersIdeal
60–100 charactersAcceptable
100–150 charactersConsider shortening
Over 150 charactersShorten

When to Use Dates in URLs

Include dates in URLs only for content where the date is a meaningful identifier:

  • News articles: /news/2024-03-15/budget-announcement
  • Event coverage: /events/2024/react-conf-recap

For evergreen tutorials, guides, and documentation, omit dates — they signal that content may become outdated.

Exceptions

  • Necessary utility or compliance pages can be intentionally brief and should not be judged by the same editorial-depth expectations as ranking-focused content.
  • AI-assisted drafting is not a failure by itself; flag unsupported claims, missing editorial review, or low-originality output instead.
  • When a page has both trust-signal issues and crawl/index problems, make the page eligible to rank first and then improve the content quality signals.

Standards

  • Use these references as the standard for the final search-facing HTML, metadata, and crawl behavior.
  • Check the implementation against Google Search Central: URL structure best practices before treating the rule as satisfied.
  • Check the implementation against Google SEO Starter Guide before treating the rule as satisfied.

Verification

Automated Checks

  • Inspect rendered HTML and HTTP headers to confirm the expected metadata or crawlability signal is present.
  • Test the affected URL with Google Search Console or equivalent tooling where relevant.
  • Re-crawl a representative page set after deployment.

Manual Checks

  • Confirm the change does not create conflicting canonical-url, robots, or structured-data signals.

Use with AI

Copy these prompts to use with your AI assistant, or install the MCP server to use directly from Claude, Cursor, or Windsurf.

Check

Verify implementation

For each page URL, extract the path component (excluding domain and query string). Flag: (1) Path length over 100 characters. (2) More than 4 path segments (e.g., `/a/b/c/d/e` has 5 segments). (3) Common stop words in slugs (`the`, `a`, `an`, `of`, `in`, `at`, `to`, `for`, `with`). (4) Dates in URL paths for evergreen content (e.g., `/blog/2024/03/css-guide`). (5) Session IDs, tracking parameters, or other dynamic values in paths.

Fix

Auto-fix issues

1. Shorten slugs by removing stop words: - `/how-to-optimise-your-websites-core-web-vitals` → `/optimise-core-web-vitals` - `/a-comprehensive-guide-to-css-grid-layout` → `/css-grid-guide` 2. Flatten URL structure where category hierarchy is not essential: - `/blog/2024/march/technology/css-grid` → `/blog/css-grid` 3. Remove dates from evergreen content URLs (with 301 redirects from old URLs). 4. Remove session IDs and tracking parameters from URLs used as canonical-url URLs. 5. Implement changes with 301 redirects from old to new URLs to preserve link equity. 6. Update sitemaps and internal links after URL changes.

Explain

Learn more

Google recommends keeping URLs 'simple, descriptive, and readable'. Long URLs are more prone to being truncated in search snippets, harder to share, and more confusing to users. Deep URL structures (many subdirectories) do not directly harm rankings, but they can increase crawl distance from the root, reducing crawl frequency for deep pages on large sites.

Review

Code review

Parse the pathname of each URL. Count path segments (split by `/`). Measure character length of the path. Flag slugs containing common stop words. Report the longest 10 URLs by character count and deepest 10 by segment count. Check whether URL generation utilities strip stop words and limit segment depth.

Sources

References used to support the guidance in this rule.

Further Reading

Tools and supplementary material for exploring the topic in more depth.

URL Structure Best Practices for Google Search | Google Search Central  |  Documentation  |  Google for Developers

It's a good idea to keep your site's URL structure as simple as possible. Learn more about the URL format recommended by Google, such as the use of hyphens, und…

Google for DevelopersGuide
SEO 新手指南:基础知识 | Google 搜索中心  |  Documentation  |  Google for Developers

掌握基本的搜索引擎优化 (SEO) 知识可以带来显著的效果。欢迎阅读 Google SEO 新手指南,简要了解搜索引擎优化的基本知识。

Google for DevelopersGuide

Rules that often go hand-in-hand with this one.

Use hyphens in URLs

Checks that URL slugs use hyphens as word separators, not underscores or spaces

SEO
Use lowercase URLs

Checks that URLs are lowercase

SEO
URL Stop Words

Flags common stop words in URL slugs that add length without improving keyword relevance.

SEO
Include keywords in URL slugs

Checks if URL slugs contain descriptive, keyword-relevant words instead of IDs, random strings, or vague terms.

SEO

Was this rule helpful?

Your feedback helps improve rule quality. This stays internal for now.

Loading feedback...
0 / 385