Skip to content

WordPress permalinks affecting SEO — post name vs custom structures

WordPress permalink choice has SEO and operational consequences. Post name vs custom, when to change, and how to migrate without losing rankings.

WordPress permalink structure is one of those decisions made once at install time that nobody revisits — until somebody on the team reads a blog post about how date-based URLs hurt SEO and asks for a migration. The truth is more nuanced. Permalink structure affects URL aesthetics, slightly affects user CTR, and dramatically affects the cost of changing it later. The operational question is rarely “what’s the right structure” but “is the current one bad enough to justify the migration risk.”

What’s happening

WordPress offers six permalink structures: Plain (?p=123), Day and name (/2024/01/01/post-name/), Month and name (/2024/01/post-name/), Numeric (/archives/123/), Post name (/post-name/), and Custom. Post name is the modern default and what 90% of WordPress sites should use. Date-based structures (Day and name, Month and name) were popular in the early 2010s blogosphere but are penalized in current best-practice for being long and rarely matching user intent. Plain and Numeric are essentially never the right choice for a public site.

How to verify

From WP-CLI on the WordPress host:

wp option get permalink_structure
wp post list --post_type=post --field=url | head -10
curl -sI https://example.com/sample-post/ | head -3
ls -la ~/public_html/.htaccess
cat ~/public_html/.htaccess | grep -A 5 'BEGIN WordPress'

permalink_structure should be /%postname%/ for the standard post-name configuration. The .htaccess should have a WordPress rewrite block. If permalink_structure is empty, you’re on Plain (?p= URLs) — that’s wrong for any public WordPress site.

The fix

  1. Pick post-name structure if you’re not already there. Settings > Permalinks > Post name > Save. WordPress flushes rewrite rules automatically. This is correct for 90% of sites: blogs, agency sites, SMB marketing sites, content publishers.

  2. When to consider custom structures. Large news/publishing WordPress sites with high post volume benefit from /category/%postname%/ because the category prefix gives URL signals about topic and helps users navigate. Documentation sites benefit from /%postname%/ only because flat URLs are easier to share. Custom post types should use their own slug — WooCommerce products at /product/<name>/, not /<name>/.

  3. Avoid date-based structures. /2024/01/post-name/ makes URLs look stale after a year and breaks if you republish older content with current dates. The migration cost from date-based to post-name is real (every URL needs a 301) but the long-term benefit on a WordPress site that publishes evergreen content is worth it.

  4. Migrating permalinks without losing rankings. This is where most operators get burned. Steps:

    • Take a full backup before touching anything.
    • Export the current URL list via wp post list --field=url > old-urls.txt.
    • Change the permalink structure.
    • Export the new URL list with the same command after the change.
    • Generate 301 redirects from old to new for every post.
    • Apply the redirects in .htaccess, an SEO plugin, or a Redirection plugin.
    • Validate with curl -sIL for a sample of 20 URLs.

    Stack Harbor’s enterprise WordPress hosting migration scripts automate this — the manual version is error-prone on large sites.

  5. Don’t change permalinks on a high-traffic WordPress site without a deliberate plan. Even with perfect 301s, some link equity is lost during the transition. Search engines re-crawl and re-rank over weeks. If your site does six-figure organic sessions per month, every permalink change is a risk event — schedule it like a deployment, not as a “quick settings tweak.”

  6. Custom post types and taxonomies. Each custom post type registers its own slug. WooCommerce uses /product/, an Events plugin uses /events/, etc. These slugs are part of your URL strategy — if a custom slug is generic (“post”), it can conflict with the default post type. Use unique, descriptive slugs.

  7. Trailing slashes. WordPress emits trailing slashes by default (/post-name/). Don’t change this — every CDN, every shareable link, and every backlink expects the trailing slash. Some headless WordPress setups omit them; that’s a deliberate architectural choice, not an SEO one.

  8. .htaccess permissions after a change. When WordPress flushes rewrite rules, it tries to write to .htaccess. If file permissions are wrong, the flush silently fails and the new permalinks 404. Verify post-change: wp rewrite list. If empty, fix permissions and re-flush.

Stack Harbor handles permalink strategy and migration as part of enterprise WordPress hosting onboarding. Start the conversation before changing permalinks on a WordPress site that does meaningful organic traffic.