Technical SEO 2 min read

WordPress Permalinks: The Best URL Structure for SEO

Your permalink structure shapes every URL on your site. Learn which WordPress permalink setting to use, how to write good slugs, and how to change URLs safely without losing rankings.

On this page

Key takeaways

  • Use “Post name” permalinks (/%postname%/) for most sites.
  • Keep slugs short, descriptive and lowercase, with hyphens between words.
  • Changing permalinks on an existing site requires 301 redirects — otherwise you lose rankings and links.

Permalinks are the permanent URLs of your posts and pages. WordPress lets you choose their structure, and the choice affects usability, sharing and SEO for the life of the site. Get it right before you publish.

Setting Example Verdict
Plain /?p=123 Avoid — meaningless URLs
Day and name /2026/10/19/wordpress-redirects/ Only for news sites; dates make evergreen content look old
Month and name /2026/10/wordpress-redirects/ Same issue
Numeric /archives/123 Avoid
Post name /wordpress-redirects/ Best for most sites
Custom: category + name /wordpress/wordpress-redirects/ OK for large, well-structured sites, but moving posts between categories changes URLs

Writing good slugs#

  • Include the main keyword: /wordpress-redirects/.
  • Remove filler words: “how-to-set-up-redirects-in-wordpress-the-easy-way” → “wordpress-redirects”.
  • No dates or numbers that will change (“best-plugins-2026”, “top-7-…”).
  • Lowercase, hyphens, ASCII characters.
  • Edit the slug before publishing — WordPress auto-generates it from the title.

See URL structure for general principles.

Need a hand with this?

Get a quick, honest review of your website’s SEO.

Chat on WhatsApp

Category base and tag base#

By default, category archives live at /category/seo/. You can change the base in Settings → Permalinks (this site uses /topics/). Some SEO plugins can remove the base entirely. Choose once and keep it.

  1. Ask whether it’s worth it. Changing working URLs carries risk; only do it for a clear benefit (e.g. moving from plain ?p= URLs).
  2. Back up and crawl the site to export all current URLs.
  3. Change the structure in Settings → Permalinks.
  4. Add 301 redirects from old patterns to new ones (often one regex rule) — see WordPress redirects.
  5. Update internal links, menus and the sitemap.
  6. Monitor Search Console for 404s and ranking changes.
Built-in help When you change a single post’s slug, WordPress remembers the old slug and redirects automatically. Changing the global structure needs proper redirects.

Trailing slashes#

WordPress adds trailing slashes by default (/post/) and redirects the non-slash version. Keep it consistent; mixing both creates duplicate URL variants.

Do keywords in URLs help rankings?#

Slightly, and mainly by making URLs clearer to users. Don’t stuff keywords or change established URLs just to add them.

Should I include categories in URLs?#

For most blogs, no. It makes URLs longer and fragile if you reorganise categories.

How long should a slug be?#

Three to five words is a good target.

Found this useful? Share it

Join the discussion

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

Security code image. If you cannot read it, press refresh or contact me on WhatsApp.