Free SEO audit for new clients — claim yours
Home/Blog/SEO/SEO-Friendly URLs: Structure and Best Practices
SEO

SEO-Friendly URLs: Structure and Best Practices

SEO-Friendly URLs: Structure and Best Practices
Table of contents
  1. Key Takeaways
  2. What Is an SEO-Friendly URL?
  3. What Google Recommends
  4. Good vs Bad URL Examples
  5. How to Create SEO-Friendly URLs: Step by Step
  6. Should You Change Existing URLs?
  7. Common URL Mistakes
  8. Related Guides
  9. Frequently Asked Questions
    1. Do URLs affect SEO rankings?
    2. Should I use hyphens or underscores in URLs?
    3. Are URLs case sensitive for Google?
    4. How long should a URL be?
    5. Should I include keywords in my URL?
    6. Should I remove dates from my blog URLs?
  10. Conclusion
  11. References

Compare these two addresses: example.com/index.php?id=7713&cat=42&sess=a9f3 and example.com/garden/raised-bed-kits/. You can guess what the second page is about before you click. So can search engines, and so can anyone who sees the link in a message, a social post or a search result.

URLs are not a major ranking factor on their own, but they shape how people perceive your result, how your site is organised and how efficiently search engines crawl it. Bad URL patterns can also create thousands of duplicate addresses that waste crawling and split signals.

In this guide you will learn what makes a URL SEO-friendly, what Google itself recommends, how to structure folders and slugs, and how to change URLs safely when you need to.

Key Takeaways

  • Use readable words rather than long ID numbers, in your audience's language.
  • Separate words with hyphens, not underscores, and keep URLs lowercase because Google treats URLs as case sensitive.
  • Keep structure simple and logical; folders should reflect your site's real hierarchy.
  • Minimise parameters and avoid session IDs and endless filter or calendar combinations.
  • Do not change working URLs without a good reason; when you must, 301-redirect every old URL to its new equivalent.

What Is an SEO-Friendly URL?

An SEO-friendly URL is short, readable and descriptive, uses a consistent format, and maps to exactly one piece of content. A typical URL has several parts:

PartExampleSEO note
Protocolhttps://Use HTTPS across the site
Subdomainwww.Pick www or non-www and redirect the other
Domainexample.comYour brand; changing it means a full site move
Folder (path)/garden/Reflects site structure and helps users orient themselves
Slugraised-bed-kitsDescribes the specific page in a few words
Parameters?colour=green&sort=priceKeep to a minimum; control filter combinations
Fragment#reviewsFine for jump links; do not use to load different content

What Google Recommends

Google's URL structure guidelines are short and practical. The core advice:

“When possible, use readable words rather than long ID numbers in your URLs.”

— Google Search Central, URL structure best practices for Google Search

The same page recommends:

  • Using words in your audience's language, with non-ASCII characters percent-encoded when needed.
  • Separating words with hyphens rather than underscores, because underscores are commonly used to join concepts together.
  • Remembering case sensitivity: Google treats /APPLE and /apple as distinct URLs.
  • Using standard parameter encoding, with an equals sign between keys and values and an ampersand between parameters.
  • Not using fragments to change content, because Google Search generally does not support URL fragments for that.
  • Avoiding session IDs and patterns that create huge numbers of URLs, such as additive filtering and unbounded calendars.

Google's SEO Starter Guide adds that readable URL words can help people judge a result, and Google may use them to build breadcrumb-style displays. That is one more reason to keep paths meaningful; our guide to breadcrumb navigation explains the connection.

Good vs Bad URL Examples

AvoidPreferWhy
/p?id=7713/raised-bed-kits/Readable words instead of IDs
/Raised_Bed_Kits/raised-bed-kits/Lowercase and hyphens
/blog/2019/03/14/the-10-best-raised-bed-kits-you-can-buy-this-year//blog/best-raised-bed-kits/Shorter; no dates or years on content you will update
/shop/products/items/garden/beds/raised/kits//garden/raised-bed-kits/Shallow, meaningful folders
/raised-bed-kits?sessionid=a9f3/raised-bed-kits/No session IDs in URLs
/kits-raised-bed-garden-raised-beds-buy-raised-bed/raised-bed-kits/No keyword stuffing

How to Create SEO-Friendly URLs: Step by Step

  1. Plan your structure first. Decide your main sections (for example /services/, /blog/, /shop/) based on your website architecture. Folders should mirror how users browse.
  2. Write a short, descriptive slug. Use the page's main topic in a few words, usually based on the primary keyword. Drop filler words like "a", "the" and "and" when the slug still reads clearly.
  3. Use lowercase and hyphens. Set your CMS to generate lowercase, hyphenated slugs and redirect uppercase variants.
  4. Avoid dates and numbers that will age. "best-tools-2026" forces a URL change next year; "best-tools" does not.
  5. Choose one trailing slash and protocol convention. Pick with or without a trailing slash, HTTPS, and www or non-www, then redirect all alternatives to it.
  6. Control parameters. Keep tracking and sorting parameters out of internal links, and point parameter variants at the clean version with canonical tags. See our guides to canonical tags and faceted navigation.
  7. Handle international URLs consistently. Use subfolders, subdomains or country domains for language versions and connect them with hreflang tags.
  8. Test before launch. Crawl the site to check for duplicate URL variants, uppercase links, parameter sprawl and broken links.

Should You Change Existing URLs?

Usually not just to make them prettier. A URL that already ranks and has links carries history, and every change introduces risk. Change URLs when there is a clear benefit: moving off a platform with ID-based URLs, fixing a broken structure, consolidating duplicates or rebranding.

When you do change them:

  • Create a full map from every old URL to its new equivalent.
  • Use permanent server-side redirects; our guide to 301 vs 302 redirects explains which to use.
  • Update internal links, canonical tags and XML sitemaps to the new URLs so you do not rely on redirects.
  • Avoid creating redirect chains by pointing old URLs straight at the final destination.
  • Monitor Search Console for crawl errors and traffic changes for several weeks.

For larger changes, follow a full website migration checklist.

Common URL Mistakes

  • Mixed case. Because Google treats case as significant, /Page and /page can become duplicates. Our post on duplicate content covers the fixes.
  • Underscores and spaces. Use hyphens; spaces become %20 and look messy.
  • Keyword stuffing. Repeating keywords makes URLs look spammy and adds no value.
  • Deep nesting. Five or six folders deep is rarely necessary and makes URLs long and fragile.
  • Infinite URL spaces. Filters, sorting options and calendars that generate endless combinations waste crawling.
  • Changing URLs without redirects. This turns ranking pages into 404s overnight.

Frequently Asked Questions

Do URLs affect SEO rankings?

URLs are a minor factor on their own, but readable URLs help users judge results, support a clear site structure and avoid duplicate URL problems that can waste crawling and split signals.

Should I use hyphens or underscores in URLs?

Use hyphens. Google recommends hyphens over underscores to separate words, because underscores are commonly used to join concepts together.

Are URLs case sensitive for Google?

Yes. Google treats URLs with different capitalisation as different URLs, so use lowercase consistently and redirect uppercase variants.

How long should a URL be?

There is no fixed limit for SEO. Aim for a short, descriptive path that names the page's topic in a few words and avoids unnecessary folders and parameters.

Should I include keywords in my URL?

Include the page's main topic where it reads naturally, as this helps users understand the page. Do not stuff multiple keywords or variations into the URL.

Should I remove dates from my blog URLs?

For new content, avoid dates if you plan to update the post over time. For existing URLs, only change them if the benefit outweighs the risk, and always use 301 redirects.

Conclusion

SEO-friendly URLs are simple: readable words, hyphens, lowercase, a logical folder structure and as few parameters as possible. Get the pattern right before you launch, keep it consistent and avoid changing URLs that already work. When you must change them, redirect carefully and monitor the results.

Planning a new site structure or a URL clean-up? Our technical SEO guide covers the wider picture, and our SEO team can plan and run the change for you. Get a free quote.

References

  1. Google Search Central: URL structure best practices for Google Search
  2. Google Search Central: SEO Starter Guide
  3. Google Search Central: Redirects and Google Search
  4. Google Search Central: How to specify a canonical URL
  5. Semrush: What Is a URL? Structure, Types, and Best Practices
Rohit Choudhary
Written byRohit ChoudharyCo-Founder, My SEO Experts

Rohit Choudhary is the co-founder of My SEO Experts and has more than 14 years of hands-on experience in SEO, paid advertising and digital marketing. Since starting out in 2011 he has helped hundreds of businesses grow through practical, data-driven search strategies, and he also serves as a consulting Digital Marketing Director for several US-based companies.

Keep reading

Related articles

Ready to grow your business online?

Get a free, no-obligation proposal tailored to your goals and budget.

CallFree Quote