SEO

SEO-Friendly URLs in WordPress: Permalinks, Slugs and Changing Them Safely

How to structure clean, SEO-friendly URLs and permalinks in WordPress, write good slugs, and change existing URLs safely with 301 redirects to protect rankings.

SEO-Friendly URLs in WordPress: Permalinks, Slugs and Changing Them Safely
On this page
  1. What makes a URL SEO-friendly
  2. Do URLs affect rankings?
  3. Choosing a permalink structure in WordPress
  4. Writing good slugs for pages and posts
  5. Should you change existing URLs?
  6. How to change URLs safely
  7. Common mistakes
Key takeaways
  • Use the Post name permalink structure and short, readable, lowercase slugs with hyphens, and settle them before launch.
  • Words in URLs are only a minor ranking signal, so don't rewrite well-performing URLs without a clear reason.
  • When you do change URLs, map old to new, add 301 redirects, update internal and external links you control, and monitor 404 errors.

Every page on your website has a URL, and in WordPress you control most of it through the permalink settings and each page's slug. Clean, readable URLs help visitors understand where they are, look more trustworthy in search results and when shared on WhatsApp, and keep your site organised as it grows. Messy URLs are rarely a disaster, but changing them carelessly can be. Here's how to set them up well, and how to change them without losing traffic.

What makes a URL SEO-friendly

  • Readable: a person can guess what the page is about from the URL alone
  • Short and descriptive: the main topic, without filler words
  • Lowercase, with hyphens between words: not spaces, underscores or capital letters
  • Stable: no dates, years or details that are likely to change
  • Consistent: one pattern across the site, and one preferred version (https, with or without www)
Less helpfulBetterWhy
/?p=482/ac-repair-pune/Says what the page is about
/2024/03/our-best-offers-for-this-summer-season-2024//summer-ac-service-offers/Shorter, and doesn't go out of date
/Services/Dental_Implants//services/dental-implants/Lowercase with hyphens
/best-dentist-delhi-top-dentist-cheap-dentist//dentist-delhi/No keyword repetition

Do URLs affect rankings?

A little, but less than many people think. Words in a URL are generally a minor signal, and a page with a messy URL can still rank well if its content is strong. The bigger benefits are practical:

  • Search results often show the URL path, so a clear one reassures people before they click
  • Links shared on WhatsApp, email and social media are easier to trust when they're readable
  • A logical structure, such as /services/ and /blog/, makes analytics reports and site management easier

So get URLs right on new pages, but don't rush to rewrite old ones that already perform well.

Go to Settings, then Permalinks in the dashboard. WordPress offers several structures:

OptionExampleGood for most businesses?
Plain/?p=123No, it tells visitors nothing
Day and name, Month and name/2026/09/28/post-name/Rarely, dates make lasting content look old
Numeric/archives/123No
Post name/post-name/Yes, short and clear
Custom structure/blog/%postname%/Sometimes, for example to group articles under /blog/

Post name suits most business websites. Pages work slightly differently: they use their own slug plus any parent page, so a "Dental Implants" page placed under a "Services" parent becomes /services/dental-implants/. Avoid putting categories in post URLs unless you have a good reason, because recategorising a post later changes its URL.

WooCommerce stores also get a "Product permalinks" section on the same screen. Decide on all of this before launch, when changing it costs nothing.

Writing good slugs for pages and posts

The slug is the last part of the URL. WordPress creates it from the title, which is often too long, and you can edit it in the page or post settings (look for the URL or permalink field in the editor's sidebar).

  • Keep the main topic: "How Much Does a Modular Kitchen Cost in Bengaluru? A Complete Guide" can become /modular-kitchen-cost-bengaluru/
  • Leave out years and counts you'll update, like "2026" or "15 tips", so the URL still fits when the content changes
  • Include a city only if the page is genuinely about that location
  • Don't repeat keywords or cram in several phrases
  • On Hindi or regional-language pages, consider simple Latin-character slugs, because non-Latin characters often turn into long strings of % codes when a link is copied and shared
  • Watch for "-2" at the end: WordPress adds a number when a slug is already taken, for example by another page or an uploaded image
  • Set the slug before you publish and share the page

Should you change existing URLs?

Only when the benefit is clear. Good reasons include:

  • The site uses Plain or date-based permalinks and you're planning a wider clean-up or redesign
  • A URL is misleading, for example it names a service you no longer offer
  • You're merging several weak pages into one stronger page
  • You're moving platforms and the old URL pattern can't be kept

If a page ranks well and brings enquiries, and its URL is merely imperfect, it's usually better left alone. Even with correct redirects, rankings can fluctuate for a while as Google processes the change.

How to change URLs safely

  1. List every current URL. Use your XML sitemap, the page indexing report in Search Console and your analytics, so pages with traffic or links aren't missed.
  2. Take a full backup, and for site-wide changes, test on a staging copy first; see staging sites explained.
  3. Map old to new. Keep a spreadsheet with each old URL and its closest new equivalent.
  4. Make the change and add 301 redirects from every old URL to its new one. A redirect plugin or your SEO plugin can handle individual pages, and structure-wide changes (like removing dates) can use a pattern-based rule. WordPress sometimes redirects a changed post slug automatically, but don't rely on it. See 301 vs 302 redirects.
  5. Update internal links and menus so they point straight to the new URLs instead of passing through redirects.
  6. Update links you control elsewhere: your Google Business Profile website and appointment links, social media profiles, Google Ads final URLs, email signatures, saved WhatsApp quick replies, and QR codes on brochures or visiting cards.
  7. Test and monitor. Open a sample of old URLs to confirm they land on the right page, resubmit your sitemap in Search Console, and watch for 404 errors over the following weeks.

Keep the redirects in place permanently. Old links on other websites, in bookmarks and on printed material will keep being used for years.

Common mistakes

  • Changing a slug or the permalink setting on a live site without redirects, creating broken links overnight
  • Redirecting all old URLs to the homepage instead of to matching pages
  • Changing URLs repeatedly, which builds redirect chains; point old URLs straight to the final address
  • Changing URLs, design and content all at once, which makes it hard to tell what caused any drop; see how to redesign without losing rankings
  • Stuffing keywords or lists of cities into slugs

Planning a URL clean-up, redesign or platform move? See WordPress SEO services or WordPress migration for help making the change without losing traffic.

Need help with your website?

I'm Sameer, a freelance WordPress developer building fast, SEO-friendly websites since 2020. Tell me what you need and I'll reply with a plan and a fixed quote within 24 hours.

Found this useful? Share it:
Contact

Let's build your next website

Available for freelance projects, agency white-label work and long-term maintenance. Feel free to pass this along to your team or company.

Your details are emailed to me, then WhatsApp opens so we can chat right away.

Chat now