URL Structure Best Practices: Google’s Rules for SEO-Friendly URLs

Person browsing the web on a laptop

URLs are small, but they affect how Google crawls your site and how people read your links. This guide follows Google’s documentation on URL structure and turns it into practical rules for WordPress sites.

Quick facts

  • Use readable words: Google recommends readable words rather than long ID numbers
  • Use hyphens: separate words with hyphens, not underscores
  • Mind case: `/APPLE` and `/apple` are different URLs to Google
  • Keep it simple: trim parameters that do not change the content
  • Fragments: Google generally does not support fragments such as `/#/potatoes` for changing content
  • Last checked: 5 November 2026 against Google Search Central

Use descriptive, readable words

Google’s URL structure guidance says that when possible you should use readable words rather than long ID numbers in your URLs. Put words in the language your audience searches in, including transliterated words where relevant.

Separate words with hyphens

Google recommends using hyphens instead of underscores, because hyphens clearly mark word boundaries. Avoid running words together, such as greendress. WordPress already uses hyphens in post slugs, so edit the slug if a generated one is too long or unclear.

Percent-encoding

Reserved characters must be percent-encoded, and non-ASCII characters should be percent-encoded. If you have emoji or special characters in slugs, see our guide to fixing emoji in WordPress URLs safely.

Mind case sensitivity

Google treats `/APPLE` and `/apple` as different URLs. If your server treats them as the same, convert the URL to one case so Google can identify the duplicate.

Keep URLs simple

Google recommends a simple structure and says to shorten URLs by trimming unnecessary parameters, meaning those that do not change the content. Use a standard parameter format: separate key-value pairs with `=` and add parameters with `&`, and use commas for multiple values under one key.

Do not use fragments for content

Google says it generally does not support fragments, such as `/#/potatoes`, to change content. If a JavaScript site changes content, use the History API.

How complex URLs create duplicates

Overly complex URLs can create many URLs with identical or similar content, which wastes crawl bandwidth and can prevent full indexing. Google lists these common sources:

  • Additive filters: combined filters can multiply view URLs; a few lists are enough for Googlebot to reach each item
  • Irrelevant parameters: referral IDs, sort parameters and session IDs create extra URLs; Google advises using cookies instead of session IDs in URLs
  • Infinite calendars: add nofollow to links to dynamically generated future calendar pages
  • Broken relative links: use root-relative URLs instead of parent-relative ones
  • Robots.txt: block crawling of problematic dynamic URLs, such as search results, calendars and sorting or filtering functions

Where duplicate URLs already exist, a canonical tag can help; see our canonical tag guide.

Frequently asked questions

Hyphens or underscores?

Hyphens. Google recommends them because they clearly mark word boundaries.

Are URLs case sensitive?

To Google, `/APPLE` and `/apple` are different URLs.

Should I put session IDs in URLs?

No. Google advises using cookies instead of session IDs in URLs.

Can I use fragments to load content?

Google generally does not support fragments for content. Use the History API for JavaScript-driven changes.

Scroll to Top