How to Write SEO-Friendly URLs That Rank
Most people set a URL once, hit publish, and never look at it again. That's a costly habit. Your URL is one of the first things Google reads, and it's right there in the search results when someone decides whether to click. A messy address can quietly drag down everything else you've done on the page.
Here's the good news: fixing it is one of the fastest, cheapest on-page wins you can grab. Clean, descriptive URLs help search engines understand your pages, support a stronger click-through rate, and make your whole site easier to crawl. You don't need a developer or a big budget. You need a few clear rules and the discipline to follow them.
In this guide, you'll learn what makes a URL SEO-friendly, the core rules of a clean URL structure, how to write keyword-rich slugs, the mistakes that hurt rankings, and a checklist you can run on every page before it goes live. We'll also cover how to fix old URLs without losing the rankings you've earned.
By the end, you'll be able to look at any URL on your site and know exactly what to keep, what to cut, and what to rewrite.
What Does an SEO-Friendly URL Actually Look Like?
An SEO-friendly URL is short, readable, and clearly describes the page it points to. Glance at it, and you should be able to guess what's on the page before you click. That clarity is the whole game.
Why does this matter for both people and search engines? Three reasons:
Here's a quick comparison:
seojerry.com/p?id=8842&cat=12&ref=hp
seojerry.com/blog/seo-friendly-urls
The clean version reads like plain language. The messy one reads like a database query. One invites the click; the other plants doubt. When the keyword sits right there in the URL, Google often bolds it in the snippet, which gives you another small nudge toward the click.
To be fair, URLs are a smaller ranking signal than your content or your backlinks. But they're a real one, and they feed directly into how clearly Google reads your site and how confident people feel before they click. Small wins like this stack up across hundreds of pages.
The Rules Behind Every Clean URL
Good URL structure for SEO comes down to a handful of rules. Nail these, and most of the work is done. Think of this as your baseline for URL best practices.
Keep It Short
Use a few clear words, not a full sentence. Short URLs are easier to read, share, and remember. They're also less likely to get cut off in search results. As a rule of thumb, keep your full URL under 140 characters and your slug under five words.
Stick to Lowercase
URLs are case sensitive. To Google, /SEO and /seo can count as two separate pages with their own content. That creates duplicate URLs and splits your authority. Set everything to lowercase and the problem disappears.
Hyphens Beat Underscores, Always
This one trips up a lot of sites. Google reads hyphens in URLs as spaces between words, so seo-friendly-urls registers as three distinct words. Underscores glue words together, so seo_friendly_urls can read as one long, confusing string. Always pick hyphens.
Make the URL Match the Page
Descriptive URLs win. The slug should preview what's inside. If the page covers keyword research, the URL should say keyword-research, not page-7 or post-id-4421. Readable words beat long ID numbers every time.
Here's a fast good-versus-bad scan:
✅ seojerry.com/blog/keyword-research
❌ seojerry.com/blog/2024/05/post-id-7781-keyword-research-final
The first is timeless and clean. The second is dated, cluttered, and harder to trust.
How to Write Slugs That Carry Your Keyword
The URL slug is the part of the address that names the specific page. In seojerry.com/blog/seo-friendly-urls, the slug is seo-friendly-urls. It sits at the end, after your domain and any folders.
Writing keyword-rich slugs takes three steps:
Here's a before-and-after:
seojerry.com/blog/how-to-write-the-best-seo-friendly-urls-for-your-website
seojerry.com/blog/seo-friendly-urls
The short version keeps the keyword front and center and dumps the noise.
One more example, this time for a service page:
seojerry.com/services/the-best-affordable-local-seo-services-for-small-businesses
seojerry.com/services/local-seo
Cleaner, faster to read, and still crystal clear.
Now the warning: don't stuff. A slug like seo-urls-seo-friendly-url-best-seo-url looks spammy and reads worse. One clear keyword beats three crammed ones. Always put the user first. A clean, readable slug helps your rankings and your click-through rate; a stuffed one helps neither.
Your slug, your title, and your headings work as a team in search results. If you haven't sorted out how those pieces fit together, read title tag vs H1 next.
What About Stop Words?
Stop words are the small connector words: the, and, of, a, in, for. Whether to keep them comes up constantly, so here's a straight answer.
Usually, cut them. They make slugs shorter and cleaner without losing meaning. seojerry.com/guide-to-link-building works just as well as seojerry.com/link-building-guide.
But don't cut blindly.
Sometimes one or two stop words protect readability or meaning. benefits-working-from-home reads worse than benefits-of-working-from-home.
The rule: trim for brevity, but never make the URL confusing. If dropping a word makes the slug awkward, leave it in.
the-best-tools-for-keyword-research
best-keyword-research-tools
The trimmed version is shorter and still perfectly clear. That's the winner.
URL Mistakes That Quietly Cost You Rankings
A few habits quietly drain rankings and traffic. Run this list against your own site and fix anything that trips a wire.
Dynamic Parameters
Long strings of ?id=, &, and sort= confuse crawlers and look untrustworthy to people. A URL like seojerry.com/p?id=42&ref=foo&sid=789 tells nobody anything. Where you can, serve clean, static URLs instead. When dynamic parameters are unavoidable, control them carefully so they don't spin up endless versions of the same page.
Session IDs in URLs
Session IDs are one of the worst offenders. They create a fresh URL for every visitor, which floods Google with near-identical pages and burns crawl budget. An indexed session can also expire, so a searcher lands on an error instead of your content. Use cookies to track sessions, and keep session IDs out of your URLs entirely.
Duplicate URLs
When the same content is reachable through several paths, it splits your authority and confuses search engines about which version to rank. If you can't avoid duplicates, point them all to one preferred version with canonical URLs. A canonical tag tells Google, "this is the real one, rank this."
Folders Buried Too Deep
Burying a page under too many subdirectories, like /blog/seo/on-page/urls/guide/post, makes it harder to crawl and signals low importance. Keep your folder depth shallow. One to two directory levels is plenty for most sites, and search engines treat pages closer to the root as more important.
Changing URLs Without Redirects
This is the big one. Rename or move a page without a redirect, and you can lose its rankings overnight. Never change a live URL without a plan (more on that below).
Think of this section as a quick audit. For a site with hundreds of pages, hunting down dynamic parameters, duplicate URLs, and broken redirects one by one is brutal. Auditing and fixing at scale is a technical SEO job, and it beats manual edits every time.
How Your URLs Map Out Your Site
Your URLs aren't just labels for single pages. Together, they map out your whole site hierarchy and shape how Google understands the relationships between your content.
Subdirectories and categories give both users and search engines context. A URL like seojerry.com/services/seo instantly shows that SEO is one service under a parent services section. That structure adds meaning before anyone reads a word of the page.
So when should you use subdirectories versus a flat structure?
Subdirectories
Subdirectories work well when you have clear content groups, like services, blog categories, or product types. They show relationships and support topical clusters. Just keep the nesting shallow, ideally one to two levels deep.
Flat Structure
A flat structure, where most pages sit one level below the domain, suits smaller sites where deep grouping isn't needed and simplicity wins.
A logical hierarchy also makes internal linking easier. When your folders match your content themes, related pages connect naturally, and that strengthens every cluster you build. It also helps keep a crawlable URL structure, so Googlebot can reach your important pages without wasting effort on dead ends.
Clean URLs reinforce the rest of your on-page SEO signals too. The slug, the title, the headings, and the anchor text: meta description should all tell the same story about the page. When they line up, you win more clicks and more trust.
How to Change Old URLs Without Losing Rankings
Here's the warning up front: changing a URL without a plan can wipe out rankings that page spent years earning. Treat every change with care.
When a change is genuinely worth it, follow this safe process:
Only change URLs when there's a real benefit.
If the current URL works, leave it alone. Don't fix what isn't broken.
Set up a 301 redirect from old to new.
A 301 tells Google the page moved permanently and passes most of its ranking value to the new URL.
Update your internal links.
Don't lean on redirects alone. Point your menus, body links, and buttons straight at the new address.
Submit and monitor in Google Search Console.
Watch for crawl errors, indexing issues, and any traffic dips after the switch.
Keep watching for a few weeks.
Rankings can wobble briefly after a change. Steady monitoring helps you catch problems early.
One extra tip
Avoid redirect chains. When URL A redirects to B, which redirects to C, you slow the page down and bleed link value. Always redirect straight from the old URL to the final destination.
Your Quick URL Checklist Before You Publish
Save this and run it on every page before you publish. If a URL fails even one check, rewrite it.
Eight checks, every page, every time. It takes a minute and saves you from costly fixes later.
What Good URLs Look Like in Practice
Rules click faster with examples. Here's how clean URLs look across different page types:
Notice the pattern. Each one is lowercase, hyphenated, descriptive, and shallow. You can read the URL and know exactly where you are on the site.
The Quick Recap
Ready to Turn Clean URLs Into Better Rankings?
Start small this week. Audit your top pages, find the messy URLs, and fix the worst offenders first. Then keep building the cluster with the on-page SEO checklist and the title tag vs H1 guide.
Want the structure, redirects, and deeper technical cleanup handled for you? Our team audits your URLs, hunts down dynamic parameters and duplicate URLs, sets up safe redirects, and tunes every page for clicks and conversions. Get a free SEO audit from SEO Jerry, and we'll show you exactly where your quick wins are hiding.