URL Structure Best Practices
Your URL structure affects both usability and SEO. Google looks at URLs for keyword signals, users share them and read them, and they communicate information about your site structure.
Why URLs Matter
URLs serve multiple purposes in SEO. First, they're a weak ranking signal — Google confirms that descriptive keywords in URLs help it understand page topic. Second, they affect user behavior. A readable URL like example.com/how-to-make-sourdough-bread is more likely to be shared and clicked than example.com/article-12847. Third, they communicate site structure to both crawlers and users.
URLs are visible in search results, social media previews, emails, and messaging apps. They're often the only thing users see before deciding whether to click. An opaque URL suggests a site they shouldn't trust.
URL Best Practices
Keep URLs Short and Descriptive
Descriptive doesn't mean long. example.com/how-to-make-sourdough-bread is good. example.com/how-to-make-sourdough-bread-a-complete-guide-for-beginners-includes-troubleshooting is too long. Strike a balance: enough information that the URL describes the content, not so much that it becomes unwieldy.
Use Hyphens, Not Underscores
Google treats hyphens as word separators but not underscores. example.com/how-to-make-bread is readable to crawlers. example.com/how_to_make_bread might be interpreted as "howtomakebread." Use hyphens. This is established best practice, not a strong ranking factor, but there's no reason to ignore it.
Use Lowercase
URLs are case-sensitive from a technical perspective, though Google treats them as equivalent. Use lowercase to avoid confusion and potential duplicate content issues. example.com/bread is cleaner than example.com/Bread.
Avoid Special Characters and Parameters
Avoid characters that don't render well or aren't necessary: question marks (for query parameters, use only when required), ampersands, special symbols. Clean URLs are easier for crawlers, users, and systems that share links.
Include Keywords, But Don't Force Them
If your target keyword naturally fits in your URL, include it. example.com/keyword-research-guide is better than example.com/guide-123. But don't sacrifice clarity for keywords. example.com/best-best-keyword-research-guide-keywords is awkward and diminishes your URL's value.
Subfolders vs Subdomains
Generally, subfolders are better than subdomains for SEO. example.com/blog/article is preferable to blog.example.com/article because all authority consolidates under one domain. Subdomains are treated as separate entities by Google, so a link to your blog subdomain doesn't pass as much benefit to your main domain.
Subdomains are appropriate when you're hosting genuinely separate properties (a blog, a store, a documentation site) that have different audiences and don't need to consolidate authority. But for most site structures, subfolders are better.
Dynamic vs Clean URLs
Modern CMSs generate clean URLs by default. If your site is still generating URLs with question marks and session IDs (example.com/article.php?id=123&category=bread), fix that. Google can crawl dynamic URLs, but clean URLs are clearer and more shareable.
Clean URLs also make your site more maintainable. If you ever change your backend, your URLs remain stable and don't require redirects.
Changing URLs: The Cost and Process
If you need to change a page's URL, always use a 301 redirect from the old URL to the new one. This tells Google and users "this content moved here permanently." Without a redirect, the old URL becomes a 404, and any links pointing to it are wasted.
A 301 redirect passes approximately 90-99% of the ranking power from the old URL to the new one. You lose some value in the transition. This is why you shouldn't change URLs lightly. Plan your URL structure carefully in the beginning, then stick with it.
After changing a URL, monitor the old and new URLs in Search Console to ensure Google recognizes the redirect and consolidates the pages. Expect a 2-4 week period where rankings may fluctuate slightly before stabilizing at the new URL.
URL Structure and Site Architecture
Your URL structure should reflect your site's information architecture. If you have topic clusters (main topics with related subtopics), your URLs should show this relationship: example.com/seo/on-page/title-tags, example.com/seo/on-page/meta-descriptions, example.com/seo/technical/site-speed. This structure tells crawlers about the relationship between pages.
Flat structures (everything under root directory) work if you have few pages, but hierarchical structures scale better and help crawlers understand your topic organization.
Common URL Structure Mistakes
Dates in URLs
Including publication dates (example.com/2026/03/article-title) signals freshness but can hurt evergreen content. An article from 2020 with a date in the URL looks outdated even if you updated it last month. Skip publication dates if your content doesn't have to be current.
Session IDs and Tracking Parameters
Never use session IDs in URLs. They create massive duplicate content problems. Use cookies or backend sessions instead. If you use tracking parameters (UTM, Google Analytics custom parameters), tell Google they're not content parameters in Search Console.
Changing URLs Without Redirects
If you're redesigning and changing URLs, set up your 301 redirects before launch. Not doing so means you're starting from zero on link equity for those pages.
Non-Descriptive URLs
example.com/article-123 tells you nothing about content. example.com/how-to-make-sourdough-bread tells you everything. Use the latter approach.