12 min read · Technical SEO · Last updated July 2026
Quick answer: Good SEO URLs are short, descriptive, lowercase, use hyphens to separate words, include the target keyword, and avoid parameters, session IDs, and unnecessary subfolders. When changing existing URLs, always implement 301 redirects from old to new.
Introduction
URL structure is one of those technical SEO factors that is easy to get right from the start and expensive to fix later. A URL established when a page is first indexed accumulates backlinks, crawl history, and user bookmarks. Changing it — even with correct redirects — requires a recovery period while Google transitions the signals to the new URL.
Get it right the first time, and your URLs become a minor ranking asset. Get it wrong, and you are choosing between living with suboptimal URLs forever or managing the risk of a URL restructure.
The good news: URL best practices are genuinely simple, and almost all of them align with common sense about what makes a URL readable by both humans and search engines.
What you’ll learn:
– The exact attributes of an SEO-optimal URL
– Where to put your target keyword in the URL
– The subfolder vs subdomain debate (with a clear answer)
– How URL length affects rankings
– How to change URLs without losing rankings
– The most common URL mistakes and how to avoid them
Table of Contents
- Why URL Structure Matters for SEO
- Anatomy of an SEO-Optimal URL
- Keywords in URLs: How Much Do They Matter
- URL Length and Rankings
- Subfolder vs Subdomain: The Definitive Answer
- Hyphens vs Underscores
- URL Parameters and Their Risks
- Changing URLs Safely Without Losing Rankings
- URL Structure for Different Content Types
- Frequently Asked Questions
Why URL Structure Matters for SEO
URLs influence SEO in three ways: as a ranking signal, as a usability factor, and as a crawlability signal.
Ranking signal: Google has confirmed that keywords in URLs are a lightweight ranking signal. “Lightweight” means it is not going to overcome poor content or weak authority — but all else equal, a URL containing the target keyword ranks marginally better than one that does not.
Usability: Clean, readable URLs are shared more often in copy-pasted contexts (emails, forums, documents), appear more trustworthy in search results snippets, and are easier for users to remember or type. Google’s quality raters assess user experience, and URL readability is part of that picture.
Crawlability: URL structure directly communicates site architecture to Googlebot. A URL pattern like /blog/technical-seo/lcp-optimization-guide/ tells Google this is a blog post in the technical-seo subcategory. This hierarchical signal helps Google understand content relationships.
Anatomy of an SEO-Optimal URL
A well-structured URL has these characteristics:
1. Uses HTTPS
https://ignitednepal.com/blog/technical-seo/lcp-optimization-guide/
Always HTTPS in 2026. Non-negotiable.
2. Uses the canonical domain format
Decide on www or non-www and stick to it. Redirect the other variant to the canonical. Mixed use creates duplicate content.
3. Is lowercase
URLs are case-sensitive on most servers. /Product-Page/ and /product-page/ are different URLs, which creates potential duplicate content. Always use lowercase.
4. Uses hyphens to separate words
/lcp-optimization-guide/ not /lcp_optimization_guide/ or /lcpoptimizationguide/
5. Contains the target keyword
/lcp-optimization-guide/ targets “LCP optimization guide.” The URL directly signals the page topic to Google.
6. Is short and descriptive
Remove filler words: “a”, “the”, “and”, “in”, “of”. /guide-to-the-optimization-of-lcp-for-websites/ → /lcp-optimization-guide/
7. Has a clean path structure
Reflects site architecture without excessive nesting. Maximum 3–4 directory levels for any important page.
8. No parameters or session IDs
Clean URLs only. Parameters (?sessionid=abc123&ref=homepage) create duplicate URLs, dilute crawl budget, and appear untrustworthy in search results.
Keywords in URLs: How Much Do They Matter
Google’s John Mueller has said that keyword in URL is a “very small” ranking factor. The research supports this — it matters, but it is in the bottom tier of ranking signals.
What keywords in URLs do that matters:
– Anchor text appearance in backlinks: When someone links to your URL without custom anchor text, the URL itself becomes the anchor text. /lcp-optimization-guide/ as anchor text sends stronger topical signals than /p/1823/.
– Click-through rate: Users scanning SERP results see the URL. A URL containing the search query keyword (bolded in Google’s SERP display) marginally improves CTR.
– Content expectation alignment: A URL that matches the page title and target keyword sets clear expectations. Mismatched URLs (a page about LCP with the URL /page-speed-101/) create minor trust issues.
Where to place the keyword: At the end of the URL path, after any necessary category structure:
/blog/technical-seo/lcp-optimization-guide/
↑ category ↑ keyword here
Do not keyword-stuff URLs. /lcp-optimization-guide-lcp-fix-largest-contentful-paint/ is worse than /lcp-optimization-guide/. Google truncates long URLs in SERPs, and the keyword value does not multiply with repetition.
URL Length and Rankings
Shorter URLs perform better on average. Moz’s research on URL length found that URLs under 60 characters outrank longer URLs in the majority of cases analyzed. Google typically displays approximately 70–75 characters of URL in search results before truncating.
However, URL length is a correlation, not a causation. Short URLs tend to belong to authoritative sites with clean architecture. Long URLs tend to belong to sites with dynamic, parameter-heavy URL generation. The architecture issues causing long URLs also cause ranking problems — the length itself is a symptom, not the cause.
Practical guidance:
– Target under 75 characters for important pages
– Remove date patterns from blog posts (/2024/01/15/post-title/ → /blog/post-title/)
– Remove stop words (“a”, “the”, “and”) from URLs
– Avoid auto-generated numeric IDs in URLs for content pages (/p/1823/ → /lcp-guide/)
URL Structure Analyzer
Enter any URL to get a quality score and specific recommendations.
Subfolder vs Subdomain: The Definitive Answer
This debate resurfaces regularly. Should your blog be at blog.example.com (subdomain) or example.com/blog/ (subfolder)?
The answer: subfolder, almost always.
Google treats subdomains as separate websites by default. Each subdomain needs to build its own domain authority from scratch. A new blog at blog.example.com starts with zero Domain Rating, even if example.com has DR 60. Content published there does not contribute to the authority of the main domain, and vice versa.
With a subfolder (example.com/blog/), all content shares the authority of the main domain. A blog post at /blog/technical-seo/cls-guide/ inherits the domain’s trust signals. Its internal links pass PageRank to the main domain’s pages and vice versa. The SEO value compounds.
The only valid reasons to use a subdomain:
– Technical necessity: your blog runs on a completely different platform (e.g., a separate CMS) that cannot share the same domain root due to hosting architecture
– Localization: au.example.com for Australian content (though example.com/au/ is also valid)
– Distinct products: a SaaS company running app.example.com for the web application is appropriate — that is a genuinely separate product, not content about the product
For content (blog, resources, case studies, documentation): always subfolder.
Hyphens vs Underscores
Use hyphens. This has been Google’s recommendation since 2005.
Google treats hyphens as word separators. In the URL /lcp-optimization-guide/, Google reads three words: “lcp”, “optimization”, “guide.” Each word is recognized as a separate search term.
Underscores do not separate words. In /lcp_optimization_guide/, Google reads one word: “lcpoptimizationguide.” This does not match any search query.
Spaces encoded as %20 in URLs are valid but ugly and should be avoided. Use hyphens.
URL Parameters and Their Risks
URL parameters (?sort=price&color=red&page=2) are appended to URLs by CMS systems, e-commerce filters, analytics tracking, and A/B testing platforms. Each unique parameter combination is technically a unique URL — which creates:
Duplicate content: /products/shoes/ and /products/shoes/?sort=price-asc are different URLs with the same (or very similar) content. If Google indexes both, you have a duplicate content situation.
Crawl budget waste: A large e-commerce site with 10 filter options can generate millions of parameter-based URLs. Google wastes crawl budget on these instead of your actual product pages.
Solutions:
– Use canonical tags on parameter pages pointing to the clean URL
– Configure parameter handling in Google Search Console (Settings → Crawl → URL Parameters — though this feature has limited effect)
– Use JavaScript-based filtering that does not change the URL at all (pushState or hash-based routing)
– Disallow high-volume parameter patterns in robots.txt
Analytics parameters (?utm_source=email&utm_medium=newsletter) are usually handled correctly by Google (it strips common GA parameters), but always set canonical tags on pages where analytics parameters appear in the URL.
Good vs Bad URL Comparison Cards
Real-world examples showing the difference between SEO-optimal and problematic URLs across common page types.
Changing URLs Safely Without Losing Rankings
Changing an established URL is one of the highest-risk technical SEO operations. When done correctly, the ranking transfer is nearly complete. When done incorrectly, you can lose rankings permanently.
The fundamentals:
1. Always 301 redirect old URLs to new URLs. A 301 (permanent) redirect signals to Google that the page has moved and transfers approximately 99% of PageRank. Never delete a URL without a redirect. Never use a 302 (temporary) redirect for a permanent move.
2. Update internal links. After setting up redirects, update all internal links throughout your site to point directly to the new URL. This eliminates redirect hops for internal link crawling.
3. Update your XML sitemap. Remove old URLs and add new URLs. Resubmit the sitemap in Google Search Console.
4. Update canonical tags. Any page that had a canonical tag pointing to the old URL must be updated to point to the new URL.
5. Outreach for high-value backlinks. For your top 20–30 most-linked pages, contact referring domains and ask them to update their links to the new URL. This eliminates redirect hops for backlink crawling.
6. Monitor in Search Console. After the change, watch for crawl errors on the old URLs (404s that were not redirected) and track rankings for affected pages over the following 4–8 weeks.
Recovery timeline: Most URL changes recover to previous rankings within 2–8 weeks for well-executed migrations. Pages with many external backlinks may take longer as Google processes the redirect signals.
When not to change URLs: If a page ranks well and has accumulated external backlinks, the benefit of cleaning up the URL rarely justifies the risk of the transition. The exception is if the URL is actively misleading (wrong product category, wrong language, incorrect slug from a typo) or if it is causing technical issues (duplicate content, parameter proliferation).
URL Structure for Different Content Types
Blog posts:
/blog/[category]/[post-slug]/
– Include category for architectural signal
– Use evergreen slugs (avoid dates unless the content is inherently time-stamped news)
– Keep slugs to 3–6 words
Product pages:
/[category]/[product-name]/
– Two levels maximum
– Include the most-searched variant of the product name
– Avoid SKU codes or model numbers unless users search for them
Service pages:
/[service-type]/ or /services/[service-name]/
– One or two levels
– Use the keyword phrase users type, not internal jargon
– Match the geographic variant only if the service is geo-specific
Category pages:
/[category-keyword]/
– Single level where possible
– Use the broadest keyword that still defines the category
– No parameters in the canonical URL
Landing pages:
/[campaign-keyword]/ or /[service]-[location]/
– Keep short
– Match the ad keyword exactly where possible
– Use subfolders, not subdomains
Key takeaway: URL structure is easiest to get right when building a new site. The best time to clean up poor URL structure is before your first page gets indexed. The second-best time is now, with proper 301 redirects and a careful monitoring plan.
Frequently Asked Questions
Does having the keyword in the URL still matter in 2026?
Yes, but as a lightweight signal. Google’s own documentation lists “keyword in URL” as a ranking signal. The effect is small — meaningful enough to include intentionally, but not significant enough to restructure established URLs just to add a keyword.
Should I remove dates from my blog post URLs?
Yes, in most cases. A URL like /blog/lcp-optimization-guide/ is evergreen. A URL like /blog/2024/01/lcp-optimization-guide/ feels dated when it appears in a 2026 SERP. If you already have dated URLs that are ranking, only change them with careful 301 redirects and if the benefit outweighs the transition risk.
Can I use my company name in all URLs?
Your company name should appear in the domain, not the URL path. /ignitednepal/blog/ adds unnecessary depth and dilutes keyword signals. /blog/ or /resources/ is cleaner.
What about URL slugs in multiple languages?
For multilingual sites, use hreflang annotations alongside URL structure for international SEO. Common approaches: /en/blog/lcp-guide/ and /np/blog/lcp-guide/ (subfolder by language), or en.example.com and np.example.com (subdomain by language). Subfolder is generally preferred for authority consolidation.
Does trailing slash matter for SEO?
The trailing slash creates technically different URLs (/page/ vs /page). Canonicalize to one version (trailing slash is conventional for directories, no slash for files). Whichever you choose, be consistent and redirect the other variant.
Should I include the year in news article URLs?
News publishers use dates in URLs for content organization and to signal freshness to readers. For evergreen content, avoid dates. For news or time-sensitive content (event coverage, product launches, regulatory changes), including the year is acceptable and sometimes expected by readers.
Conclusion
URL structure is a long-term architectural decision. The incremental ranking benefit of a clean URL over a messy one is small — but the benefit of making the right choice once at the start of a site, versus managing URL migrations years later, is enormous.
Four rules cover 90% of URL structure decisions: always HTTPS, always lowercase with hyphens, always subfolder over subdomain for content, and always keyword-in-slug for content pages. Apply them consistently from day one, and URL structure becomes a non-issue in your ongoing SEO work.
Let Ignited Nepal Handle This
We conduct URL structure audits, identify parameter issues and duplicate URL risks, and plan URL migrations with full redirect mapping for sites at any scale.
→ Request a Free Technical SEO Audit
Written by the Ignited Nepal SEO team. We build organic search systems for businesses across Nepal, Australia, UAE, USA, UK, and beyond. ignitednepal.com