“It is also crucial to understand the function of permalinks. They are used everywhere on a website because every page has a URL. However, permalinks become particularly vital when you want to optimize for SEO, as Google strongly favors ‘URL-friendly’ structures—regardless of whether you are using WordPress or any other platform. In WordPress, there is a specific way to configure permalinks, and it is important to know how to set them up properly so that Google ranks your website higher. All the details are in this article below; scroll down and read on.”
I learned about permalink structure the hard way.
In 2017, I was managing a client’s blog that had been running for two years. They had accumulated 340 published posts, all ranking reasonably well. Someone — not me, thankfully — decided the URL structure “looked cleaner” with dates included, changed the permalink setting to Day and Name, and hit Save.
No redirects. No transition plan. Just a single setting change.
Within 48 hours, Google Search Console was showing 340 404 errors. Every single URL that Google had indexed — two years of link building and ranking work — now returned page not found. It took three weeks and a full redirect implementation to recover the rankings, and some pages never fully came back.
Permalink settings are one of the most consequential technical decisions in WordPress. Done right from the start, they support SEO permanently. Changed incorrectly on an established site, they can erase years of ranking progress in a day.
This guide covers the right settings, the common mistakes, and what to do if you have already made one of those mistakes.

What WordPress Permalinks Actually Are
Every page, post, and custom post type on your WordPress site has a URL — a web address where that content lives. WordPress calls this the permalink (permanent link) because ideally it should never change.
The permalink has two parts. The first is your domain: wpskillz.com. The second is the slug — the specific part that identifies the individual piece of content: /wordpress-permalink-seo-settings/.
Together they form the complete URL: wpskillz.com/wordpress-permalink-seo-settings/
WordPress gives you several options for how that slug is generated. The setting you choose determines whether your URLs look like wpskillz.com/?p=123 or wpskillz.com/wordpress-permalink-seo-settings/.
That difference matters more than most people realize — for both Google and for real human visitors deciding whether to click your link.
Why Permalink Structure Affects Rankings
Google’s crawler reads URLs. Not just to find the page, but to understand what the page is about before it crawls a single word of content. A URL containing your target keyword gives Google an additional signal about page relevance — not a strong signal on its own, but a consistent supporting signal across hundreds of pages that adds up.
More practically, URLs appear in three places that affect user behavior:
Search results: Your URL appears below the page title and above the meta description in Google. A URL like example.com/?p=123 looks like spam. A URL like example.com/wordpress-seo-guide-2026/ looks like a legitimate resource. The difference in click-through rate is measurable.
Shared links: When someone copies your URL to share in a Slack message, an email, or a social post, the URL is visible. A descriptive URL communicates context even before the recipient clicks. A numeric ID communicates nothing.
Backlinks: When other sites link to your content, they often use your URL as the anchor or partial anchor. A URL containing your keyword creates an additional relevance signal around that backlink.
In 2026, AI search tools (ChatGPT, Perplexity, Google AI Overviews) also parse URLs when retrieving content. A clean, descriptive URL helps AI systems correctly categorize your page’s topic, which affects whether your content gets cited in AI-generated responses.
The Permalink Settings — Which One to Use
Go to Settings > Permalinks in your WordPress admin panel. You will see six options.
Plain — Never Use This
example.com/?p=123
Numeric IDs with no descriptive content. Tells Google and visitors nothing about what the page contains. Provides no SEO value. The only situation where this might make sense is a very high-traffic site where database query performance is the absolute priority over all else — which does not apply to the vast majority of WordPress sites.
Day and Name — Only for News Publishers
example.com/2026/06/04/post-title/
Includes the full date in the URL. For a news publication where content is explicitly time-stamped and date context is editorially important — a newspaper archive, a daily briefing — this makes sense. For a blog or business site, dates in URLs create two problems: the URL looks dated as the post ages, and changing it later (to remove dates from old content) means broken links.
Month and Name — Similar Problems
example.com/2026/06/post-title/
Same issue as Day and Name with fewer specifics. Still dates your content visually. Not recommended for evergreen content.
Numeric — No Benefit
example.com/archives/123
Slightly more structured than Plain but still numeric. No keyword value. No reason to use this.
Post Name — Use This
example.com/post-title/
This is the correct setting for the vast majority of WordPress sites. Clean, readable, keyword-containing, and permanent. Google prefers it. Visitors trust it. AI systems parse it correctly. Set this and do not change it.
Custom Structure — For Specific Use Cases
example.com/category/post-title/
Including the category in the URL makes sense for large-scale content sites where the category hierarchy adds meaningful context — a multi-category magazine or directory where knowing example.com/wordpress/permalink-settings/ tells you both the topic area and the specific page.
The trade-off: if you ever need to recategorize a post, the URL changes — which means redirects. For most blogs and business sites, the Post Name structure without category is simpler and avoids this complication.
How to Set Permalinks Correctly

Go to Settings > Permalinks. Select Post Name. Click Save Changes.
Two specific things to do when you first set this:
Set it before publishing any content. If you change permalink structure after posts are published, every existing URL changes. For a new site with no indexed content, changing the structure has no consequence. For a site with indexed pages, every URL change requires a redirect.
Click Save Changes twice. This is not superstition — it flushes WordPress’s rewrite rules cache. After the first save, WordPress writes new URL rules to your .htaccess file. The second save confirms the rules were written correctly. If your pretty URLs are not working after the first save, click Save Changes again.
Optimizing Individual Post Slugs
Setting Post Name as your permalink structure is step one. Optimizing each individual post’s slug is step two.
When you write a post titled “The Best WordPress Permalink SEO Settings Guide for Bloggers in 2026,” WordPress automatically generates the slug: the-best-wordpress-permalink-seo-settings-guide-for-bloggers-in-2026. That is 68 characters — too long.
Edit the slug manually in the post editor. Find the URL field below the post title. Click Edit. Type a shorter, cleaner version:
wordpress-permalink-seo-settings
This is 32 characters, contains the primary keyword, and communicates the page topic clearly.
Specific slug optimization rules:
Remove stop words. Words like “the,” “a,” “an,” “in,” “of,” “and” add no SEO value to a URL. Remove them.
Use hyphens, not underscores. Google treats hyphens as word separators — seo-guide reads as two separate words: “seo” and “guide.” Underscores are treated as connectors — seo_guide reads as one word: “seo_guide.” Always use hyphens in WordPress slugs.
Keep it under 60 characters where possible. Shorter URLs are easier to share, less likely to wrap in emails, and less likely to get truncated in search results display.
Include your primary keyword. The slug should contain the main keyword you are targeting with the post. This is a direct SEO signal.
The Redirect Rule — Changing URLs on Established Sites
If you are managing a site where the permalink structure needs to change — you inherited a site using Plain or Day and Name, or you have posts with poorly optimized slugs you want to fix — the change must be accompanied by 301 redirects.
A 301 redirect tells Google and visitors: “This URL has permanently moved to this new location.” It transfers the majority of the ranking signals from the old URL to the new one. Without redirects, changing a URL means abandoning all the ranking authority the old URL had accumulated.
For changing the entire permalink structure:
Before changing the permalink setting, install a redirect plugin (Redirection is free and reliable). Configure it to capture 404 errors automatically. Change your permalink setting. The redirect plugin will catch visitors trying to reach old URLs and redirect them to the correct new ones.
For a site with hundreds or thousands of posts, automatic 404 capture is more practical than manually creating individual redirects for every URL. The redirect plugin learns from errors as they occur and creates rules based on patterns.
For changing individual post slugs:
Edit the post, change the slug, update the post. Then manually create a redirect from the old slug to the new one in your redirect plugin. This is a one-to-one redirect that takes about 30 seconds per post.
Do not change individual slugs on high-traffic posts without first checking their current backlink profile. A post with 50 backlinks pointing to the old URL represents real SEO value. Changing the URL without creating a redirect abandons that value immediately.
Fixing the Common Permalink Errors
404 Errors on Pages You Know Exist
This is usually a .htaccess problem. WordPress writes its URL rewrite rules to .htaccess when you save permalink settings. If .htaccess is not writable (permissions issue), WordPress cannot update the rules and your pretty URLs return 404.
Fix:
Go to Settings > Permalinks and click Save Changes. If 404 errors continue, access your hosting file manager or FTP client and navigate to your WordPress root directory. Find the .htaccess file. Ensure its permissions allow WordPress to write to it (644 permissions are standard). Then go back to Settings > Permalinks and save again.
If you cannot find .htaccess, it may be hidden. In cPanel File Manager, ensure “Show hidden files” is enabled.
Permalinks Broken After Server Migration
Moving a WordPress site between hosting providers sometimes breaks permalink settings because the server configuration does not carry over identically. The .htaccess rules that worked on the old server may not apply correctly on the new server’s configuration.
Fix:
Go to Settings > Permalinks and click Save Changes twice. This regenerates the .htaccess rules for the new server environment. If still broken, check with your new hosting provider whether mod_rewrite (the Apache module that enables pretty URLs) is enabled.
Use the WP Skillz Website Speed Test after migration to confirm the site is loading correctly across all pages — not just the homepage. A fast homepage with broken internal pages indicates a configuration issue that the speed test on multiple URLs will surface.
Category Base in URLs You Want to Remove
WordPress includes /category/ in the URL of archive pages by default: example.com/category/wordpress/. Many SEO guides recommend removing this prefix for cleaner URLs.
Use an SEO plugin to remove the category base. In Rank Math, go to Rank Math > Titles and Meta > Categories and check the option to remove the category base. In Yoast SEO, go to SEO > Search Appearance > Taxonomies and set categories to not be included in the URL.
After making this change, create redirects from the old /category/keyword/ URLs to the new /keyword/ URLs.
The Slug Optimization Checklist
Apply this to every post and page before publishing:
Before publishing:
- Slug shortened to under 60 characters
- Primary keyword included in slug
- Stop words removed (the, a, an, in, of, and)
- Hyphens used instead of underscores
- No special characters (apostrophes, question marks, symbols)
- No capital letters — all lowercase
When changing an existing slug:
- 301 redirect created from old slug to new slug
- Redirect confirmed working before publishing change
- Internal links updated to point to new URL
- If post has significant backlinks — note this change in your records
Site-wide permalink audit:
- Permalink structure set to Post Name
- .htaccess file writable
- No 404 errors in Google Search Console for active content
- Redirect plugin active and capturing errors
Frequently Asked Questions
What is the best WordPress permalink setting for SEO? Post Name — example.com/post-title/ — for the vast majority of WordPress sites. It is clean, descriptive, and keyword-containing. It is what Google recommends and what high-performing content sites consistently use.
Can I change my WordPress permalink structure on an existing site? Yes, but only with proper redirect implementation. Before changing the structure, install a redirect plugin. After changing, verify that old URLs redirect correctly to new ones. Without redirects, changing permalink structure on an established site destroys all existing rankings associated with the old URLs.
How do I fix 404 errors after changing permalinks? Go to Settings > Permalinks and click Save Changes twice. This forces WordPress to regenerate the rewrite rules in your .htaccess file. If 404 errors persist, check that .htaccess has correct write permissions (644) in your hosting file manager.
Should I include categories in my WordPress URLs? Generally no, for blogs and business sites. Category-based URLs (example.com/category/post/) add complexity and make future recategorization (which changes URLs) more disruptive. Post Name structure without categories is simpler and more flexible.
Do hyphens or underscores work better in WordPress slugs? Always use hyphens. Google treats hyphens as word separators — best-seo-guide reads as three separate words. Google treats underscores as word connectors — best_seo_guide reads as a single compound string. For keyword recognition in URLs, hyphens are definitively correct.
Conclusion — Get the Foundation Right and Leave It
The client site I mentioned at the start eventually recovered. Rankings came back, traffic returned, and three weeks of redirect implementation work was completed. But the fundamental lesson was simple: a permalink structure decision made correctly once, from the start, requires no further attention.
Set Post Name as your permalink structure before publishing your first post. Optimize each post’s individual slug to be short, keyword-containing, and clean. Never change a published URL without creating a redirect first.
Those three rules prevent the majority of permalink-related SEO problems. Follow them and this is a setting you configure once and forget.
Use the WP Skillz Keyword Ideas Generator to find the right keyword for each post’s slug before you publish. And use the Website Malware Scanner periodically to check that your .htaccess file has not been tampered with — it is a common target for injecting malicious redirect rules.
Connect with me on LinkedIn if you are dealing with a specific permalink migration or redirect situation.
Waseem Aijaz — WordPress Developer & SEO Specialist, WP Skillz Keyword Ideas Generator | All SEO Tools | About WP Skillz







