🔗URL Structure Best Practices for SEO
How to design clean, descriptive, and crawlable URL structures that help both search engines and users understand your page hierarchy.
URLs are one of the first signals Google uses to understand what a page is about. A well-structured URL communicates page topic, site hierarchy, and content type — all before the page is even fetched.
Anatomy of a Good URL
| Component | Good Example | Avoid |
|---|---|---|
| Protocol | https:// | http:// |
| Domain | example.com | www2.example.com |
| Path depth | /blog/seo-tips | /category/subcategory/sub2/post/seo-tips-2024-final |
| Slug | canonical-url-guide | canonical-url-guide-post-12345-v2 |
| Separators | word-one-two | word_one_two or word%20one%20two |
Core Principles
- Use hyphens (-) not underscores (_) to separate words. Google treats hyphens as word separators.
- Keep URLs short. Under 75 characters is a good target. Shorter URLs are easier to share and less likely to be truncated in SERPs.
- Use lowercase only. Mixed-case URLs can create duplicate content if your server is case-sensitive.
- Include the target keyword naturally in the slug.
- Avoid dates in URLs unless content is time-sensitive (news). Dates make URLs feel stale.
- Avoid unnecessary parameters like ?page=1&sort=date&filter=all.
URL Depth and Hierarchy
Google can crawl URLs at any depth, but shallow hierarchies tend to perform better. Pages more than 3 clicks from the homepage are harder to discover and typically receive fewer internal links. Keep important pages within 2-3 directory levels.
Never change a URL without setting up a 301 redirect from the old URL. Each redirect loses a small fraction of link equity. Changing URLs on pages with significant backlinks is rarely worth it.
URL Parameters
Query parameters (everything after ?) are often used for filtering, sorting, or tracking. Google tries to canonicalize parameterized URLs but can get confused. Use canonical tags or Google Search Console's URL Parameter tool to tell Google which parameters to ignore.
UTM tracking parameters (utm_source, utm_medium, etc.) are fine for analytics but ensure your canonical tag always points to the clean URL without UTM parameters.
References
- [1]Google: Keep a simple URL structure — Official guidance on URL best practices — developers.google.com
- [2]RFC 3986 — Uniform Resource Identifier (URI) standard — rfc-editor.org