5 July 2026

URL Structure SEO Best Practices: Build URLs Rankings and Users Love

Anjan Luthra
Anjan Luthra

Managing Partner · 8 min read

Key Takeaways

  • A URL has several distinct components: protocol ( https:// ), subdomain ( www ), root domain, subdirectory path, slug, and optional parameters or fragments.
  • The following are genuine structural decisions — not cosmetic preferences — that affect how a site is indexed and understood.
  • Generic guidance on URL structure focuses on what a slug should look like.
  • The most actionable — and frequently overlooked — insight in this area is that changing existing URLs on a live site is almost never worth doing for SEO reasons alone.
  • Three technical URL decisions create the majority of unintentional duplicate content issues.
  • Google treats URL content as a very minor ranking signal.
  • These three steps address the highest-impact issues without touching any existing ranking URLs.

A URL is often the first thing a search engine reads about a page — before the title tag, before the content, before any structured data. Yet many sites treat URLs as an afterthought, leaving them auto-generated by a CMS or cluttered with session parameters and numeric IDs. The result is a crawlable site that is nonetheless harder to understand than it should be. Getting URL structure SEO best practices right from the start costs almost nothing. Retrofitting them on a live site costs a great deal.

If you're looking for expert help in this area, explore how Indexed's technical SEO services can drive measurable results for your business.

What URL Structure Actually Means for SEO

A URL has several distinct components: protocol (https://), subdomain (www), root domain, subdirectory path, slug, and optional parameters or fragments. SEO best practices for URL structure concern primarily the path — the portion after the domain — because that is what you control on a page-by-page basis and what communicates context to both crawlers and humans.

Google has stated publicly that URLs are a minor ranking signal, but the indirect effects are more significant. A logical URL hierarchy supports crawl efficiency, makes internal linking more coherent, and reduces canonicalisation errors — all of which have material ranking implications.

The difference between a slug and a path

The slug is the final segment of a URL: the part that identifies a specific page. The path is everything between the domain and the slug, representing the site's folder hierarchy. Both matter. A well-chosen slug improves click-through from SERPs because the URL previewed in search results gives users a confidence signal about relevance. A well-structured path tells crawlers how pages relate to each other, which aids topical clustering and site architecture.

SEO Best Practices for URL Structure: The Non-Negotiables

The following are genuine structural decisions — not cosmetic preferences — that affect how a site is indexed and understood.

Use hyphens, not underscores

Google treats hyphens as word separators in URLs. Underscores are not treated as separators, meaning url_structure reads as a single token rather than two words. This is a long-standing, well-documented behaviour. Use hyphens consistently across every slug you create.

Keep slugs descriptive and concise

A slug should tell you — and a crawler — what the page is about in as few words as possible. Drop stop words (the, a, of) unless they are genuinely meaningful. Compare /blog/the-best-ways-to-improve-your-website-url-structure-for-seo with /blog/url-structure-seo. The second is cleaner, faster to read, and no less informative in context.

There is no universal character-count rule from Google, but shorter slugs tend to be shared more accurately, are less likely to break in email clients, and reduce the visual noise in SERP snippets.

Use lowercase throughout

Servers can be configured to treat /Blog/URL-Structure and /blog/url-structure as different pages, creating duplicate content issues. Lowercase-only slugs eliminate this risk entirely. Most modern CMS platforms default to lowercase, but check your configuration if you are on a custom or legacy stack.

Avoid dynamic parameters where static URLs are possible

URLs containing ?id=423&session=xyz are harder to read, harder to crawl efficiently, and cannot be cleanly represented in a sitemap. For product pages, blog posts, and any URL intended to rank, map to a static, descriptive path. Reserve parameters for filtered views, paginated results, or tracking — and exclude parameter-based variants from indexation using canonical tags or robots directives.

Free · No obligation

Find out what your site is losing in organic revenue.

In a free Revenue Gap Analysis, we show you exactly what's holding your rankings back — and what fixing it is worth in real revenue.

See my revenue opportunity →

Hierarchy and Folder Depth: Where Most Sites Get It Wrong

Generic guidance on URL structure focuses on what a slug should look like. Fewer sources address the structural question of how deep your folder hierarchy should go — and the answer has real crawl-budget implications for larger sites.

Shallow beats deep for most site types

A common pattern on enterprise sites is a path like /category/subcategory/sub-subcategory/product-name. Every additional folder level adds a small overhead to the crawl path and dilutes the link equity flowing from the root. Where possible, flatten the hierarchy. A four-level deep URL is rarely necessary, and a three-level structure handles most content architectures cleanly:

  • /services/technical-seo/ — category and topic
  • /blog/url-structure-seo/ — section and article
  • /products/mens/running-shoes/ — three levels for large catalogues

Folder names are content signals, not just navigation labels

Many teams treat folder names as filing labels. In practice, /resources/ tells a crawler nothing. /technical-seo-guides/ tells it a great deal. When you name a subdirectory, consider what keyword territory the section covers. This is especially valuable for sites building topical clusters, where all articles on a subject share a common path prefix — it reinforces the relationship between pages in a way that internal linking alone cannot.

A note on restaurants, menus, and niche URL architecture

One pattern that surfaces in search data — and which rarely gets dedicated coverage — is URL structure for restaurant or hospitality sites with menu pages. The temptation is to create paths like /menu/starters/dish-name. For small sites, this is unnecessary depth. A flat /menu/dish-name structure is easier to crawl and easier to link to from the homepage. For larger venues with multiple menus (lunch, dinner, set menu), a two-level structure — /menus/dinner/ — gives sufficient hierarchy without burying pages three or four clicks from the root.

When Not to Change Your URLs: The Decision Most Guides Skip

The most actionable — and frequently overlooked — insight in this area is that changing existing URLs on a live site is almost never worth doing for SEO reasons alone. This point deserves direct treatment because many site owners read guidance on URL structure and immediately want to retrofit it across an existing domain.

When you change a URL, you must implement a 301 redirect from the old path to the new one. Done correctly, this passes most of the link equity. But "most" is not "all," and there is a transitional period during which Google re-crawls and re-indexes the new URL. For a large site, that transition can take months. External links pointing to the old URL will continue to resolve via a redirect indefinitely — adding a small overhead to every request.

John Mueller of Google noted in November 2024 on LinkedIn that SEOs often over-focus on URL structure, and that if page context is clear from the content itself, the URL contributes little additional signal. The practical takeaway: if a page already ranks well and has accumulated backlinks, leave the URL alone. Reserve URL optimisation for new pages, site migrations you are already undertaking, or cases where a URL is actively confusing (containing session IDs or broken encoding).

The best time to implement SEO-friendly URL structure best practices is when you are building a new site or undertaking a planned platform migration. At that point, the cost of doing it correctly is minimal and the benefit compounds across the site's entire lifespan.

HTTPS, Trailing Slashes, and Canonicals: The Technical Details That Create Duplicate Pages

Three technical URL decisions create the majority of unintentional duplicate content issues. Resolving them is more valuable than polishing slugs.

HTTPS consistency

Every page on your site should resolve exclusively over HTTPS. Mixed-content pages — where the URL is HTTPS but resources load over HTTP — create browser warnings and erode crawl trust. Verify that your SSL certificate covers all subdomains you use and that HTTP variants of every URL 301 redirect to HTTPS.

Trailing slash consistency

example.com/blog/url-structure and example.com/blog/url-structure/ are technically different URLs. If both resolve to the same content, you have a duplicate. Pick one convention — trailing slash or no trailing slash — and enforce it via server-level redirects across the entire site. Most platforms default to one or the other; the choice matters less than the consistency.

Canonical tags as a backstop, not a first solution

Canonical tags tell Google which version of a URL is the preferred one for indexation. They are useful for parameter-based duplicates and syndicated content. They are not a substitute for correct redirect configuration. If two URLs resolve to the same page, a redirect is always the cleaner solution. Use canonicals to handle cases where you cannot redirect — for example, filtered e-commerce views that must remain accessible to users.

See the system

The Full-Stack Search Method.

Seven compounding pillars that turn search into your highest ROI channel. See exactly how we build organic growth that lasts.

See the full methodology →

FAQ

Do keywords in a URL directly affect Google rankings?

Google treats URL content as a very minor ranking signal. The practical value of including a keyword in a slug is more indirect: it improves the relevance signal visible to users in SERP snippets, which can support click-through rate. Do not sacrifice a clean, readable URL to force a keyword in — clarity matters more than keyword density in a slug.

Should I use subdomains or subdirectories for different sections of my site?

For most sites, subdirectories (example.com/blog/) are preferable to subdomains (blog.example.com) because they keep all content under the same domain, sharing its authority. Subdomains are treated by Google as separate sites for crawling purposes, which means link equity does not flow as efficiently. Exceptions exist for genuinely separate products or regional sites where content independence is intentional.

How many folders deep should a URL be?

Two to three levels covers the majority of use cases. Beyond three levels, you risk reducing crawl priority for deep pages and making URLs unwieldy for sharing and linking. If your CMS generates four or five levels by default, this is worth configuring — particularly if you have a large catalogue or content library.

What should I do if my current URLs are messy but my site is already ranking?

Leave them alone unless you are undertaking a migration for another reason. Changing URLs on a ranking page introduces redirect overhead and a re-indexation period. Clean URL structure matters most at the point of creation. Prioritise new pages and any upcoming infrastructure changes over retroactive URL hygiene on established content.

What to Do This Week

Rather than auditing your entire URL structure at once, start with three specific actions:

  • Audit your new content template. Check what URL structure your CMS assigns by default to new posts or pages. If it is auto-generating numeric IDs, date-based paths, or overly long slugs, update the default pattern before publishing any further content.
  • Check for trailing slash inconsistency. In Google Search Console, look at the URL variants appearing under Coverage. If you see both slash and non-slash versions of the same pages, raise this with your developer as a redirect fix — it is usually a one-line server configuration change.
  • Identify any parameter-based URLs being indexed. In Search Console, filter the Coverage report by URLs containing ?. Any parameter URL appearing as Indexed (not submitted in sitemap) should be evaluated — either noindex it, canonicalise it to the clean URL, or exclude the parameter pattern in the URL Parameters tool if your Search Console account has access to that feature.

These three steps address the highest-impact issues without touching any existing ranking URLs. Do them in order and you will have materially improved your site's URL hygiene within a working week.

Anjan Luthra

Written by

Anjan Luthra

Managing Partner, Indexed

Anjan Luthra is Managing Partner at Indexed. He has spent over a decade inside high-growth companies building organic search into their primary acquisition channel, and writes about SEO strategy, AI search, and revenue a…

Share

Get SEO insights that actually move the needle.

Strategy, AI search, and growth tactics from the Indexed team — straight to your inbox.

Unsubscribe anytime. No spam.