Skip to content

SEO Tips

How to Create SEO Friendly URLs in WordPress

  • More than 300 five‑star Google reviews
  • Rolling monthly contracts
  • Monthly SEO report
  • One client per niche in each area

Key points

  • Google recommends readable words in a URL, with hyphens rather than underscores between them.
  • Google says keywords in the URL path alone have hardly any effect on ranking.
  • A readable URL that already works is usually best left alone.
  • If a URL must change, use a permanent 301 redirect and keep it for as long as possible, generally at least one year.
In this article8 sectionsHideShow

To create SEO friendly URLs in WordPress, set your permalinks to Post name, then give each page a short slug of plain words that describe it, in lowercase and joined with hyphens. A good URL tells a reader what the page is about before they open it.

If a URL already exists and reads well, leave it alone. If it has to change, set up a permanent redirect from the old address to the new one. This guide covers both jobs.

How do you create SEO friendly URLs in WordPress?

In your WordPress dashboard, go to Settings, then Permalinks, and choose Post name. WordPress's own Customize permalinks guide says this option uses the name of your post.

The slug is the last part of the address. WordPress builds it from your title. The same guide gives an example: a title such as "This Is A Great Post" becomes this-is-a-great-post, with capitals lowercased and words joined by hyphens.

Edit the slug in the post or page editor before you publish. For example, a plumber in Watford might trim a long title about blocked drains down to blocked-drains-watford.

Choose carefully at this point. The same guide says permalinks are permanent URLs that should not be changed, and it gives reasons: other bloggers link to them, people share them on social media and Google uses them when it indexes your article.

Once the slug reads well, publish the page and leave the address alone.

What makes a URL SEO friendly according to Google?

Google's page URL structure best practices for Google Search (last updated 21 October 2026) gives a short list. In plain English it says:

  • Use readable words in your URLs when you can, instead of long ID numbers.
  • Google recommends hyphens instead of underscores to separate words in a URL.
  • Use one case throughout. Google's URL handling is case sensitive, so it treats /APPLE and /apple as different URLs with their own content.
  • Trim parameters that do not change the content of the page.

Do keywords in the URL help your rankings? Google's SEO starter guide (last updated 1 December 2026) says that, from a ranking perspective, keywords in the domain name or URL path alone have hardly any effect beyond appearing in breadcrumbs.

The same guide says to try to include words in the URL that may be useful for users. So write the URL for the person reading it. The words on the page matter too, and our guide to making SEO friendly content shows how to write them step by step.

Google's URL structure page and SEO starter guide do not mention an ideal URL length, a rule about removing stop words such as "and" or "the", or a rule about putting the keyword first. They set no rule either way, so a short slug that makes sense to a reader is a sensible aim.

What should you check before you publish a new URL?

Run through these six questions each time you create a page. They turn Google's guidance into a quick routine.

  1. Would a customer recognise the words in the slug?
  2. Are the words joined with hyphens?
  3. Is the whole slug lowercase?
  4. Is the slug free of ID numbers and parameters?
  5. Could you read it aloud and still know what the page is about?
  6. Will it still be true in a year? We suggest leaving out dates and years, because a page with a year in its address needs a new address when you update it.

If every answer is yes, the URL is ready to publish.

Should you change a URL that already exists?

Usually no. In its advice on organising a site, Google's SEO starter guide says not to drop everything and start reorganising right now, because search engines will likely understand your pages as they are.

Put that next to WordPress's advice that permalinks should not be changed, and Google's view that keywords in the URL path alone have hardly any effect. In our view, they point one way. A readable URL that already works is not worth the risk of changing.

Use this table to decide what to do with each URL.

Your URL What to do Why
Readable words, hyphens, lowercase, no parameters Keep it It already follows Google's guidance, and changing it brings risk with little gain.
Long ID numbers or an address such as ?p=123 Change it, then redirect Google says to use readable words when possible.
Underscores between words Change it when you are already editing the page, then redirect Google recommends hyphens instead of underscores, so there is no need to rush.
Capital and lowercase versions both load Choose lowercase and redirect the other Google treats each capitalisation as a separate URL.
Parameters that do not change the page Remove them Google says to trim parameters that do not change the content.
Two URLs show the same page Redirect the unwanted one to the best one Google suggests a redirect from the non-preferred URL, or a canonical tag when you cannot redirect.
Old page replaced by a close match Redirect to that matching page Google says not to send many old URLs to one irrelevant page.

If a page sits in the first row, leave it as it is.

Do you need a 301 redirect when you change a URL?

Yes, a permanent redirect is the usual choice. A 301 redirect sends visitors and Google from the old address to the new one. Google's Redirects and Google Search page (last updated 16 November 2026) says that 301 and 308 status codes mean a page has permanently moved, and that permanent redirects show the new target in search results.

The same page says temporary redirects do not work like that. Search results keep showing the original page, so a temporary redirect is the wrong choice for a URL you have changed for good.

WordPress has a built-in function for old slugs. Its developer reference for wp_old_slug_redirect describes it as redirecting old slugs to the correct permalink, and the code shown there sends a 301.

The code on that page skips hierarchical post types. WordPress's register_post_type reference gives page as its example of a hierarchical type, so do not count on the function for pages. Test the old address every time, and add your own redirect if it does not land on the new page.

How long should you keep the redirect? Google's page Site moves and migrations (last updated 20 August 2026) says to keep redirects for as long as possible, generally at least one year. From users' perspective, it says to consider keeping redirects indefinitely.

That page is about moving a whole site, and it is a useful guide for a single changed slug too. It says to redirect old URLs to the new URLs as you mapped them, and it advises redirecting to the final destination directly.

How do you change a URL slug in WordPress safely?

Follow these steps in order. Each one has a reason behind it.

  1. Write down the old URL and the new URL side by side. This is your redirect map.
  2. Check the decision table above. If the page sits in the Keep row, stop here.
  3. Change the slug in the post or page editor and update the page.
  4. Set a 301 redirect from the old URL to the new one, pointing straight at the final address.
  5. Open the old URL in a browser. It should land on the new page.
  6. Update your menus and the links on other pages so they point to the new URL directly. Our guide on how to add internal links in WordPress shows how.
  7. Check that your sitemap lists the new URL. Google's site moves page says to make sure your sitemaps are updated with the new URLs.
  8. Inspect the new URL in Google Search Console. The URL Inspection tool lets you ask Google to index a URL, though Google says that submitting a request does not guarantee that the page will appear in its index.
  9. Keep the redirect in place for as long as possible, generally at least a year.

Expect some movement while Google catches up. The site moves page says the move takes place on a per-URL basis, that it can take a few weeks or more for Google to gradually start showing the new URLs of a medium-sized site, and that you should expect temporary fluctuation in site ranking during the move.

At First Place SEO, keyword and competitor decisions use Google Search Console and Semrush. In Search Console, the URL Inspection tool reports the version of a page that Google last indexed, so it helps you see whether Google has picked up your new URL. If you want to understand how Google finds a changed page, read how search engines find your website.

Check the page again after a few weeks and confirm the new URL is the one Google shows.

How do you fix ugly or long URLs in WordPress?

An ugly URL usually has an ID in it, such as ?p=123. WordPress says the default permalink setting is Plain, which is configured automatically when you install it, so a new site can start with this style. The same guide calls this setting not user-friendly and not optimised for search engines.

The fix is to choose Post name in Settings, then Permalinks. Because this changes the address of every page and post, treat it as a URL change for the whole site. Map each old address to its own new address, and test several before you finish.

A long URL is easier. Shorten the slug in the editor, keep the words that describe the page, and follow the steps above.

Worked example, using made-up details. A plumber in Watford finds a blocked drains page at example.com/?p=123. They switch to Post name, edit the slug to blocked-drains-watford and check that the old address lands on the new page. They then update the menu link, check the sitemap, inspect the new URL in Search Console and keep the redirect for as long as possible, generally at least a year.

If the site has a great many old addresses, Technical SEO help may be worth considering.

Whatever the size of the site, write the redirect map before you change a single slug.

Common questions about SEO friendly URLs

Do keywords in a URL help you rank?

Hardly at all, according to Google. Its SEO starter guide says that, from a ranking perspective, keywords in the domain name or URL path alone have hardly any effect beyond appearing in breadcrumbs. Use words that help a reader understand the page, and avoid adding extra keywords to the slug just in case.

Should you use hyphens or underscores in URLs?

Use hyphens. Google's URL structure page says it recommends hyphens instead of underscores to separate words. If your old URLs already use underscores, change them only when you are editing the page anyway, and add a 301 redirect from each old address.

Are URLs case sensitive for SEO?

Yes, for Google. Its URL structure page says Google's URL handling is case sensitive, so it treats /APPLE and /apple as different URLs with their own content. Use lowercase everywhere in your slugs and links. If both versions of a page load on your site, choose lowercase and redirect the other one to it, so Google sees one address.

How long should you keep a 301 redirect?

Google says to keep redirects for as long as possible, generally at least one year. From users' perspective, it suggests considering keeping them indefinitely. A sensible habit is to leave each redirect in place unless you have a clear reason to remove it.

Do you need to remove stop words from a URL?

Google's URL structure page and SEO starter guide do not mention stop words, so they set no rule. Keep the slug short, but keep any word that makes it read naturally. A slug such as blocked-drains-watford is clear to a reader, and that is the main test to apply when you choose the words.

Sources used in this article

  1. Customize permalinks, WordPress.org
  2. URL structure best practices for Google Search, Google Search Central
  3. SEO Starter Guide: The Basics, Google Search Central
Show 5 more sources
  1. Redirects and Google Search, Google Search Central
  2. wp_old_slug_redirect() function, WordPress.org Developer Resources
  3. register_post_type() function, WordPress.org Developer Resources
  4. Site Moves and Migrations, Google Search Central
  5. URL Inspection tool, Search Console Help
Graphic showing an SEO friendly web address in a browser bar
Paul, SEO expert and founder of First Place SEO

About the Author: Paul

SEO expert and founder, First Place SEO

Paul is the founder of First Place SEO, an SEO agency in London that helps businesses across London, Hertfordshire, Essex and the rest of the UK get found on Google and in AI search. He started the business in January 2024 and looks after every client account himself. He reads the same Search Console and Semrush data as his clients and joins their monthly reviews. More about Paul

Specialises inSEOLocal SEOAI search optimisationWeb designGoogle Ads (PPC)

Speak to Paul

Want a second opinion on your SEO?

Book a free call and Paul will tell you what he'd fix first on your site.