URL structure: how to design SEO-friendly URLs
A messy URL structure confuses crawlers and users alike. Here is how to choose lowercase, hyphenated, shallow URLs that hold up for years.
A URL is often the first thing a person or a crawler sees about a page, before the title tag loads or a single word of content renders. Get the structure right once and you rarely think about it again. Get it wrong and you end up maintaining redirects, chasing duplicate content, and explaining to Google why the same page exists at three different addresses.
Why URL structure matters
Search engines use the URL as a lightweight signal for what a page is about and how it fits into the rest of the site. Users judge it too: a clean URL in a search result or a shared link reads as trustworthy, a long string of parameters and IDs does not. AI answer engines display source URLs directly in some interfaces, so a readable path also helps a reader recognize where an answer came from. None of this replaces good content, but a bad URL adds friction at every step.
The core rules
- Use lowercase only. Most servers treat /Page and /page as different URLs, which quietly creates duplicate content.
- Use hyphens to separate words, not underscores or spaces. Search engines read a hyphen as a word boundary and an underscore as a joiner.
- Keep folders shallow. Three or four segments deep is a reasonable ceiling; a URL nested ten folders down signals a navigation problem, not just a long address.
- Use real words, not internal IDs. /product/wireless-mouse tells a reader and a crawler more than /product/48213 ever will.
- Drop unnecessary filler words, but do not strip so much that the URL loses meaning. Clarity beats brevity.
- Avoid putting a date in the URL unless the content is genuinely time-bound, like a news article. A dated URL on an evergreen guide makes it look stale even after you update it.
www vs non-www, and trailing slashes
Pick one canonical form for your host (www or non-www) and one form for trailing slashes, then 301 redirect every other variant to it. Neither choice is a ranking factor by itself, but running both versions live splits signals across duplicate URLs and forces canonical tags to do work a simple redirect would have handled.
Common URL mistakes
- Mixing cases across the same section, so /Blog/Post and /blog/post both resolve and both get indexed.
- Letting session IDs or tracking parameters become part of the indexed URL instead of being stripped or canonicalized.
- Building a URL from a page title that changes later, so the address no longer matches the content.
- Using the same URL pattern for a filtered or sorted view as for the main category page, which creates near-duplicate pages a crawler has to sort out.
Changing URLs without losing rankings
Sometimes a restructure is worth it anyway: a category gets renamed, the site moves to a new information architecture, or you are finally fixing a URL scheme chosen years ago. Done correctly, a URL change does not have to reset the rankings the old address earned.
- Map every old URL to its new equivalent before you change anything.
- 301 redirect each old URL straight to its new counterpart, never to the homepage.
- Update internal links to point to the new URLs directly instead of relying on the redirect.
- Update the XML sitemap to list only the new URLs.
- Watch Search Console's coverage and redirect reports for a few weeks to confirm the new URLs get indexed and the old ones drop out cleanly.
A redirect preserves the ranking. A missing one just moves the broken link somewhere new.
None of this is complicated in isolation. The cost shows up later, in redirect chains, duplicate content, and crawlers spending time on URLs that should never have existed. Set your URL rules before the first page goes live, write them down, and apply them the same way as the site grows.