How to Write SEO-Friendly URLs

4 min read

Get this guide as a PDF FREE

Save it, print it or read it offline.

How to write SEO-friendly URLs for blog posts

This post may contain affiliate links. If you buy through them, I may earn a commission at no extra cost to you.

An SEO-friendly URL is short, readable and describes the page in plain words, such as /what-is-alt-text/ instead of /?p=7784. Google recommends readable words, hyphens between words and as few parameters as possible. This guide shows how to write good URLs for blog posts, what to avoid and how to change a URL safely in WordPress.

The URL is one of the first things a reader sees in search results and when someone shares your link. A clear URL tells them what to expect before they click.

It also helps you. Clean URLs are easier to remember, link to and organise.

Key takeaways

  • Use readable words that describe the page.
  • Separate words with hyphens, not underscores.
  • Keep URLs short: remove filler words and dates.
  • Use lowercase letters.
  • Avoid unnecessary parameters and long ID numbers.
  • Do not change published URLs without a 301 redirect.

What Google says about URLs

Google’s URL structure guidance includes these points:

  • Readable words: “When possible, use readable words rather than long ID numbers in your URLs.”
  • Hyphens: Google recommends hyphens instead of underscores to separate words, because hyphens clearly mark where one word ends.
  • Case: Google treats URLs as case sensitive, so /Apple and /apple are different URLs.
  • Parameters: Google advises using as few parameters as you can.
  • Language: use words in your audience’s language.

Google’s SEO starter guide also says keywords in the URL path alone have hardly any effect beyond appearing in breadcrumbs. So a good URL is mainly about clarity for people, not a ranking trick.

Good and bad examples

Bad URLBetter URLWhy
/?p=7784/what-is-alt-text/Words instead of an ID
/2026/11/18/my-new-post//seo-friendly-urls/No date, says what the page is about
/How_To_Write_SEO_URLs//how-to-write-seo-urls/Lowercase, hyphens
/the-complete-and-ultimate-guide-to-writing-urls-for-seo-in-2026//seo-friendly-urls/Short, no year
/blog/?id=12&ref=menu/keyword-research-step-by-step/No parameters

How to write a good URL for a blog post

  1. Start from the focus keyword. If the post targets “what is a backlink”, a slug like /what-is-a-backlink/ works well.
  2. Remove filler words. Words such as “a”, “the”, “and” or “complete guide to” can usually go, as long as the URL still reads naturally.
  3. Leave out years and numbers that may change. /best-hosting-for-new-blog/ stays accurate. /best-hosting-2026/ goes out of date.
  4. Use lowercase and hyphens. WordPress does this automatically for slugs.
  5. Keep it unique. Each post should have its own clear slug.

My guide to choosing a focus keyword helps with the first step.

Pro tip

Set the slug before you publish. WordPress creates one from the title, which is often too long. Edit it in the post settings sidebar under URL, or in your SEO plugin’s snippet editor.

In WordPress, the permalink structure decides the pattern for every post URL. The “Post name” option gives clean URLs like yoursite.com/post-slug/. Most blogs use it.

If you are setting up a new site, choose it early. My guide on changing permalinks in WordPress explains each option.

Should you change old URLs?

Usually not. A URL that already works, has links and is indexed is valuable even if it is not perfect.

Change it only when:

  • It contains a year or information that is now wrong.
  • It is very long or confusing.
  • You are merging posts.

If you do change a URL, add a 301 redirect from the old address to the new one, and update your internal links. My guide on fixing broken links in WordPress covers redirects.

Common mistakes

  • Stuffing keywords: /seo-urls-seo-friendly-urls-best-seo-urls/ looks spammy.
  • Dates in post URLs: they make evergreen posts look old.
  • Changing URLs often: each change risks broken links.
  • Special characters: stick to letters, numbers and hyphens.
  • Duplicate versions: make sure http, https, www and non-www all end at one address. See my guide to fixing duplicate content.

Frequently asked questions

What is an SEO-friendly URL?

A short, readable URL that describes the page using words, separated by hyphens, without unnecessary parameters.

Should I use hyphens or underscores in URLs?

Hyphens. Google recommends hyphens to separate words.

Do keywords in the URL help rankings?

Google says keywords in the URL path alone have hardly any effect beyond appearing in breadcrumbs. Clear URLs mainly help users.

Should I include the year in my URL?

Usually not. Years make URLs go out of date. Put the year in the title instead if needed.

Can I change a post’s URL after publishing?

Yes, but add a 301 redirect from the old URL and update internal links.

Share

Written by Nayan Dhumal

I’m a blogger and graphic designer. I’ve been blogging for 3 years and I run several sites, including a free SEO tools website. I also sell printable digital products on Gumroad. Here I share what I actually learn while doing it: what ranks, what earns and what wastes your time.

Leave a Reply

Your email address will not be published. Required fields are marked *

Some links on this site are affiliate links. If you buy through them, I may earn a commission at no extra cost to you. I only recommend tools I’d use myself.