Somebody on your team wants to restructure the URLs. The current ones are ugly, the new ones would be cleaner, and everyone agrees it will help SEO.
Before that project starts, there is something worth knowing. URL structure is one of the weakest ranking factors in SEO, and changing URLs is one of the fastest ways to lose traffic.
That combination should shape how you approach this. Get URLs right when you create them. Leave them alone afterwards unless you have a strong reason.
Here is what actually matters.
What Makes a URL SEO Friendly
An SEO friendly URL is short, descriptive, readable, and stable.
Google’s own documentation asks for simple, descriptive words arranged in a way that is most intelligible to humans. That is the whole standard. If a person can glance at the URL and understand what the page covers, it works.
Compare these:
/blog/p?id=4821&cat=7/blog/seo-friendly-urls
The second tells a human and a machine what the page is about before either loads it. The first tells nobody anything.
The Honest Answer on Ranking Impact
Plenty of articles on this topic claim URLs carry serious ranking weight. The evidence does not support that.
John Mueller has stated plainly that for search rankings, neither URL length nor the number of slashes matter.
So why bother? Because URLs affect several things that do matter:
- Click-through rate. URLs appear in search snippets. A readable one builds confidence; a long one gets truncated and looks messy.
- Duplicate content risk. Inconsistent casing and parameter variants create multiple URLs for the same page.
- Crawl clarity. Clean hierarchy helps crawlers understand relationships between pages.
- Human sharing. People paste URLs into messages and documents. Descriptive ones survive that trip.
- Citation context. Descriptive paths reinforce the topical signal of a page, which some practitioners believe helps AI systems select sources. Treat that as plausible rather than proven.
The practical framing: URLs are hygiene, not leverage. Do them properly because it costs nothing, not because you expect a ranking jump.
The Rules That Actually Matter
| Rule | Why | Example |
|---|---|---|
| Use lowercase only | URLs are case-sensitive on most servers, so mixed case creates duplicates | /seo-url-guide not /SEO-URL-Guide |
| Separate words with hyphens | Google treats hyphens as word separators | /red-running-shoes |
| Keep it descriptive | Users and machines should understand it unread | /mens-waterproof-jackets |
| Use HTTPS | Confirmed ranking signal since 2014, and browsers flag HTTP as insecure | https:// everywhere |
| One primary topic per URL | Keyword stuffing in URLs is a deprecated tactic that signals low quality | Not /seo-url-structure-seo-urls-seo |
| Remove stop words where safe | Shorter and cleaner, unless removal creates ambiguity | /seo-audit-guide not /the-complete-guide-to-seo-audits |
| Avoid dates in blog URLs | Content ages instantly and refreshes look stale | Not /2024/03/14/post-title |
| Stay stable | Changing URLs risks the equity they earned | Leave them alone |
Hyphens vs Underscores
This one has a definitive answer, which is unusual in SEO.
Google treats hyphens as word separators and underscores as connectors. So red-running-shoes can rank for “red running shoes.” red_running_shoes is read closer to a single token that nobody searches for.
Use hyphens. There is no debate here and no situation where underscores are preferable.
URL Length: What Google Says vs What Helps
Google has confirmed length is not a ranking factor. The technical browser limit sits around 2,048 characters, which you will never approach.
That said, shorter is better for reasons unrelated to ranking. Search results truncate long URLs, which looks untidy and can reduce trust in the snippet.
Common practical guidance points to keeping the full URL under about 75 characters and slugs to roughly three to five words. Treat those as readability guidelines, not thresholds.
The sensible rule: make URLs as short as they need to be to describe the page clearly. Do not shave a word if doing so makes the URL ambiguous. /seo-audit is shorter than /ecommerce-seo-audit, and worse, if the page is about ecommerce audits specifically.
Folder Depth and Hierarchy
Depth should reflect genuine site structure rather than an arbitrary target.
Common guidance suggests limiting depth to around three or four levels. The reasoning is partly crawl efficiency and partly usability: a product buried five folders deep is usually also buried five clicks deep in navigation, and that is the real problem.
A workable pattern for ecommerce:
/category/subcategory/product-name
For content:
/blog/post-title or /topic/post-title
Keep the hierarchy consistent. Mixing /blog/, /articles/, and /resources/ for the same kind of content makes the structure harder for everyone to reason about, including you in six months.
The Rule That Costs Real Traffic
Here is the one that matters more than everything above combined.
Never change a URL that has earned backlinks and rankings without a compelling reason.
Every URL change requires a 301 redirect, and every redirect carries some friction. External links point at the old address. Internal links need updating. Google needs to reprocess the change, which takes weeks. During that window, performance is unpredictable.
A cosmetic improvement to a URL almost never justifies that risk. “The old one is ugly” is not a reason. “The old one is ?p=4821 and nobody can tell what it is” might be, if the page has little accumulated equity.
The asymmetry is stark. Getting a URL right at creation costs thirty seconds. Fixing it later costs a migration.
If You Must Change URLs
When there is a genuine reason, do it properly.
- Export the current URL list with traffic, backlinks, and rankings before touching anything.
- Map one-to-one from old to new. Never redirect everything to a category or homepage.
- Use 301, not 302, for permanent changes.
- Avoid chains. One hop from old to new.
- Update internal links to point directly at new URLs rather than relying on redirects.
- Update your sitemap and resubmit it.
- Keep redirects live indefinitely. Old links keep sending traffic for years.
- Monitor for at least 90 days, watching for 404s on previously ranking URLs.
Roll out in stages if the site is large. That way a problem affects one section rather than everything.
Platform-Specific Traps
WordPress. Default permalink structures often include dates or post IDs. Change this when you set up the site, before publishing. Changing it later means redirecting every post.
Shopify. Products are reachable under both /products/ and /collections/.../products/ paths, splitting authority between two URLs for the same item. Canonicalise to one.
All platforms. Tracking parameters like ?utm_source= create URL variants. Canonicalise them to the clean version rather than letting them accumulate as separate indexed pages.
Faceted navigation. Filter and sort parameters generate effectively unlimited URLs. Decide deliberately which facets deserve indexable URLs and block the rest.
A Quick URL Audit
Twenty minutes, three checks.
Crawl the site and sort by URL length. Anything unusually long is usually a parameter problem or a nesting problem.
Search for uppercase characters in the URL list. Any you find are potential duplicates.
Check your top twenty pages by traffic and confirm each has one canonical URL, a self-referencing canonical tag, and no redirect chain reaching it.
If those pass, your URLs are fine and your effort belongs elsewhere.
Mistakes Worth Avoiding
- Restructuring URLs across a whole site for cosmetic reasons.
- Using underscores instead of hyphens.
- Stuffing keywords into slugs.
- Leaving dates in blog URLs on evergreen content.
- Allowing mixed case to persist.
- Redirecting changed URLs to the homepage.
- Treating URL optimisation as a growth lever when it is hygiene.
The Practical Position
Write good URLs when you create pages. Lowercase, hyphenated, descriptive, short enough to read, deep enough to make sense.
Then leave them alone. The single biggest URL-related traffic loss in most companies comes from a well-intentioned restructure that nobody needed.
If you are wondering whether to change your URLs, the default answer is no. Spend that development time on page speed or content instead, where the return is measurable.
FAQs
Do URLs affect SEO rankings?
Only weakly. Google has confirmed URL length and folder depth are not ranking factors, though clean URLs help click-through rate and reduce duplicate content risk.
Should I use hyphens or underscores in URLs?
Hyphens. Google reads hyphens as word separators and underscores as connectors, so hyphenated words match how people search.
How long should an SEO friendly URL be?
Length is not a ranking factor, but keeping full URLs under roughly 75 characters and slugs to three to five words aids readability in search snippets.
Should I change my existing URLs to make them SEO friendly?
Usually no. Changing URLs risks the rankings and backlinks they hold. Only change when the current structure genuinely blocks understanding.
Do dates in blog URLs hurt SEO?
Not directly, but they make refreshed content look stale to users and complicate updates, so most sites remove them from the permalink structure.