What Are Permalinks? A Beginner’s Guide to WordPress URLs

Every page on your WordPress site has an address. That address is called a permalink, short for “permanent link.” It’s what appears in your browser’s address bar, what you share on social media, and what search engines use to index your content.

It’s also one of the first things you should configure after installing WordPress. Get it wrong, and you’ll be dealing with broken links for years. Get it right, and you’ll have clean, shareable, SEO-friendly URLs from day one.

What Exactly Is a Permalink?

A permalink is the full URL of a specific page, post, or piece of content on your site. The word “permanent” reflects the intention: once you set a permalink, it should stay the same so links to it never break.

Here’s an example of a permalink:

https://yoursite.com/blog/wordpress-permalinks-guide/

It has three parts:

  • The domain: yoursite.com
  • The path: /blog/
  • The slug: wordpress-permalinks-guide

WordPress generates this automatically based on your settings and the post title.

The Default Problem

Out of the box, WordPress uses a permalink structure that looks like this:

https://yoursite.com/?p=123

This is called the “Plain” structure. It works, but it’s terrible for three reasons:

  • It tells users nothing. No one knows what a post about “123” contains.
  • It’s not SEO-friendly. Keywords in URLs help search engines understand content.
  • It’s not memorable. You can’t easily share or type it.

The first thing to do is change it.

How to Change Your Permalink Structure

Go to Settings → Permalinks in your WordPress dashboard. You’ll see several options:

  • Plain: ?p=123 (avoid this)
  • Day and name: /2026/09/21/post-name/
  • Month and name: /2026/09/post-name/
  • Numeric: /archives/123
  • Post name: /post-name/
  • Custom structure: build your own

For most sites, “Post name” is the best choice. It produces clean, keyword-rich URLs like:

https://yoursite.com/wordpress-permalinks-guide/

Once you select an option, click Save Changes. WordPress automatically updates the .htaccess file (on Apache servers) to handle the new URLs.

One important note: If you’re changing permalinks on an existing site, every old URL will break unless you set up redirects. See the section below.

Choosing a Custom Structure

If you want more control, use the Custom structure option. Common patterns include:

  • /%category%/%postname%/: Includes the category in the URL (good for content-heavy blogs)
  • /%postname%/: Just the slug (cleanest option)
  • /blog/%postname%/: Adds a “blog” prefix to separate posts from pages

A word of caution on categories in URLs: If you use /%category%/%postname%/, changing a post’s category later changes its URL. That breaks links. Many SEOs recommend avoiding categories in permalinks for this reason.

Best practice for most sites: Keep it simple with /%postname%/.

Permalinks for Pages, Posts, and Custom Post Types

The structure you set applies to posts. Pages (like “About” or “Contact”) use their own slug and aren’t affected by the date or category structure.

Custom post types (like WooCommerce products or portfolio items) have their own permalink settings. WooCommerce, for example, lets you choose whether product URLs include /product/, /shop/, or a custom base.

WooCommerce tip: Go to WooCommerce → Settings → Permalinks to configure product, category, and tag URLs.

The SEO Angle

Permalinks matter for SEO in several ways:

  • Keywords in the URL help search engines understand what a page is about
  • Clean URLs get higher click-through rates in search results
  • Descriptive slugs improve user trust, people know what they’re clicking
  • Stable URLs preserve link equity when content moves

When you write a post, WordPress generates the slug from the title automatically. You can edit it before publishing.

Slug best practices:

  • Keep it short (3–5 words)
  • Use hyphens, not underscores
  • Include your target keyword
  • Remove stop words like “and,” “the,” “a”
  • Avoid dates unless the content is time-sensitive

Example:

  • Poor: /2026/09/21/how-to-set-up-wordpress-permalinks-for-beginners/
  • Better: /wordpress-permalinks-guide/

What Happens When You Change Permalinks on a Live Site

Changing permalinks on an existing site breaks every internal and external link that points to the old structure. Visitors get 404 errors. Search engines lose track of your content.

If you must change permalinks:

  1. Set up 301 redirects from every old URL to the corresponding new URL
  2. Update internal links throughout your content
  3. Submit a new sitemap to Google Search Console
  4. Monitor Search Console for 404 errors over the next few weeks

The best approach: Choose your permalink structure before you publish content. Once it’s set, leave it alone.

Fixing 404 Errors After a Permalink Change

If you’ve already changed permalinks and see 404 errors, don’t panic. There are tools for this.

Use a redirection plugin like Redirection or Yoast SEO Premium’s redirect manager. These let you create 301 redirects from old URLs to new ones. Many automatically detect when a post’s URL changes and offer to create the redirect for you.

If you didn’t set up redirects first, you can still fix it. Search Google Search Console for 404 errors, then use your redirection plugin to map each broken URL to its new location.

Common Permalink Mistakes

Mistake 1: Leaving it on “Plain.” This is the default and the worst option. Change it immediately.

Mistake 2: Including dates. Unless you run a news site, dates in URLs make content feel old. They also mean a post’s URL changes if you ever update the publish date.

Mistake 3: Changing the structure after publishing. This breaks links. Pick a structure and stick with it.

Mistake 4: Using categories in URLs. Moving a post to a different category changes its URL. Avoid this unless you’re certain categories won’t change.

Mistake 5: Letting WordPress auto-generate slugs from long titles. A post titled “10 Things I Learned About WordPress Permalinks After 5 Years of Frustration” becomes a very long slug. Edit it manually before publishing.

Quick Recap

  • A permalink is the permanent URL of a page, post, or piece of content
  • WordPress defaults to a “Plain” structure that’s bad for SEO and usability
  • Go to Settings → Permalinks and choose “Post name” or a custom structure
  • Choose your structure before publishing content, changing it later breaks links
  • Keep slugs short, descriptive, and keyword-rich
  • If you must change permalinks on a live site, set up 301 redirects first

Final Thoughts

Permalinks are one of those settings you configure once and rarely think about again. But they affect everything: how users find your content, how search engines rank it, and how easy it is to share.

Take five minutes now. Set your permalink structure to “Post name.” Then get back to the work that matters, creating content people want to read.

Was this post helpful?
Buy us a coffee!
Tags:

Free eBook!

Subscribe to our newsletter to receive it free!