The decision of how to set WordPress permalinks is most consequential when made before the site has any content — and most stressful when it needs to change after the site has been live for years. WordPress permalinks control the URL structure of every post and page on the site, and changing that structure after launch means every existing URL changes too — which breaks links, breaks bookmarks, and can damage search rankings if the transition is not handled correctly. To set WordPress permalinks correctly means making the right choice at the start, understanding what a mid-site change involves if it becomes necessary, and knowing how to fix the common problems that appear when permalink settings go wrong. This guide covers all three scenarios: initial setup on a new site, safe permalink restructuring on an established site, and the permalink-related errors that WordPress produces when the rewrite rules are out of sync with the current configuration. You’ll find the complete rundown in our Complete Guide to WordPress How.
Before anything else: If you are changing WordPress permalinks on an existing site with Google traffic, implement 301 redirects from every old URL to its new equivalent before announcing the change. The redirects preserve ranking signals and prevent broken links. Do not change permalinks on an established site without a redirect strategy in place.
Understanding WordPress Permalink Structures and What Each Choice Means
WordPress offers six built-in permalink structure options and a fully custom option, each producing URLs with different characteristics. The choice of how to set WordPress permalinks affects URL readability, SEO performance, and compatibility with certain hosting configurations.
The Plain structure (?p=123) uses WordPress’s default query variable format. These URLs carry no keyword information, look dated, and are generally considered the worst option for any site that cares about search engine visibility. No modern guide recommends Plain permalinks.
The Post name structure (/post-title/) produces the cleanest, most readable, most SEO-friendly URLs and is the standard recommendation for most WordPress sites. URLs contain only the post slug — the URL-safe version of the post title — without any date, category, or numeric prefix. This structure is the best choice for most blogs, business sites, and content sites. The Day and name structure (/2026/05/13/post-title/) and Month and name structure (/2026/05/post-title/) include date components that have limited value for most sites — dates in URLs can make content appear stale as time passes, and the date cannot be changed without changing the URL. News sites and publications that frequently reference specific publication dates are the most appropriate context for date-based permalink structures.
The Numeric structure (/archives/123) uses the post ID — slightly more readable than Plain but still carries no keyword value. The Custom structure option allows constructing a URL pattern from WordPress’s available tags: %year%, %monthnum%, %day%, %hour%, %minute%, %second%, %post_id%, %postname%, %category%, %author%. Custom structures to set WordPress permalinks with a category prefix — /%category%/%postname%/ — are used on sites where posts belong to well-defined content areas and the category name adds meaningful context to the URL.
How to Set WordPress Permalinks for a New Site
Setting up permalinks correctly from the beginning is the lowest-risk path — there are no existing URLs to break, no redirect strategy required, and the change takes thirty seconds. Do this immediately after installing WordPress, before creating any content.
- Log in to the WordPress admin panel
- Navigate to Settings → Permalinks
- Select Post name from the available options — this produces
/post-title/URLs and is the recommended choice for most sites. Alternatively, select Custom Structure and enter a pattern if the site’s specific URL needs differ from the standard - Click Save Changes
- WordPress writes updated rewrite rules to the
.htaccessfile in the WordPress root. The confirmation message should say “Permalink structure updated.” If instead you see a message with manually copyable rewrite rules, WordPress could not write to.htaccess— this means the file permissions on.htaccessprevent WordPress from editing it. In this case, copy the rewrite rules shown and manually paste them into.htaccessvia FTP. - Test the permalink structure by visiting any post or page — the URL in the browser address bar should match the structure you selected to set WordPress permalinks correctly
For WooCommerce sites: after you set WordPress permalinks to Post name, also configure the WooCommerce-specific permalink settings under WooCommerce → Settings → Advanced → Page setup. WooCommerce adds its own permalink structure for product, category, and tag URLs that is separate from the main WordPress permalink setting. The default WooCommerce URL structure (/shop/ base, /product-category/, /product/) is appropriate for most setups — change it only if there is a specific reason the default structure does not fit the site’s content organisation.
Change WordPress Permalinks Safely on an Established Site
When a site that is already live and receiving search traffic needs a permalink restructure, the process to set WordPress permalinks to a new structure requires a redirect strategy to prevent the ranking damage and link breakage that an unmanaged URL change causes. Every URL on the site changes when the permalink structure changes — the new structure may be better, but every link in search indexes, backlinks, social shares, and bookmarks points to the old URL format.
The safe sequence to change WordPress permalinks on an established live site:
- Before changing anything, generate a complete list of all current URLs — the Screaming Frog SEO Spider (free up to 500 URLs) can crawl the site and export every current URL as a CSV file. This is the definitive list of URLs that need redirects.
- Install the Redirection plugin (free; WordPress Plugin Directory) on the site before making any permalink change
- Change the permalink structure in Settings → Permalinks and click Save Changes — the URLs are now changed
- In the Redirection plugin, use its import function to bulk-upload the old URL list with the corresponding new URLs as a CSV redirect mapping, or configure a regex-based redirect rule if the URL transformation follows a consistent pattern (such as stripping a date prefix)
- Test a sample of redirects to confirm old URLs correctly redirect to new URLs with 301 status codes
- Submit an updated sitemap to Google Search Console — navigate to your Search Console property, add the new sitemap URL if it has changed, and request indexing of key pages
- Monitor Search Console for the following weeks for crawl errors, coverage issues, and ranking changes — some temporary fluctuation is normal after any significant URL change
The full recovery of search rankings after changing WordPress permalinks with proper 301 redirects typically takes two to four weeks as Google processes the changes and consolidates ranking signals from old URLs to new ones. Sites with well-established backlink profiles and high authority typically recover faster than newer sites. The redirects should remain in place permanently — not for 6 months and then removed — because inbound links and bookmarks pointing to the old URLs will exist indefinitely.
Custom WordPress Permalink Structures — When They Make Sense
The built-in Post name structure covers the needs of most WordPress sites, but there are legitimate reasons to set WordPress permalinks with a custom structure. The most common is adding a category or content type prefix to organise a large site’s URL space into logical sections.
A news site with distinct editorial sections might use /%category%/%postname%/ to produce URLs like /technology/ai-advances-in-2026/ and /business/market-update/. This structure makes the site’s content organisation visible in the URL, which can be beneficial for both user navigation and search engine understanding of the site’s topic areas. The trade-off is that if a post’s category changes, its URL changes — which creates the same redirect and ranking disruption problem as changing the overall permalink structure. For this reason, category-based custom permalink structures work best on sites where posts are assigned to stable categories that rarely change.
A portfolio or agency site might use a custom structure to set WordPress permalinks with a content type prefix: /work/%postname%/ for portfolio items alongside /blog/%postname%/ for blog posts. This is achieved by creating custom post types with their own rewrite slug rather than changing the main permalink structure — the main permalink structure remains Post name, and the custom post type’s slug handles the URL prefix. This approach is more flexible than bending the main permalink structure to fit multiple content types and is the recommended pattern when different content types need different URL prefixes.
WordPress Permalink Problems and How to Fix Them
The most common permalink problem — 404 errors on all posts and pages after setting or changing WordPress permalinks — is almost always caused by the .htaccess rewrite rules not being updated to reflect the current permalink structure. WordPress uses these rewrite rules to translate clean URLs like /post-title/ into the query string format WordPress actually processes internally (?p=123). If the rewrite rules are absent or stale, WordPress cannot resolve clean URLs and returns 404 for every non-homepage URL.
- Fix sitewide 404s after setting WordPress permalinks: Navigate to Settings → Permalinks and click Save Changes without changing any setting. This forces WordPress to regenerate the
.htaccessrewrite rules. If WordPress cannot write to.htaccess, it displays the rules to copy manually — copy them and paste into.htaccessvia FTP above the existing WordPress block. - Fix 404 on posts but not homepage: This typically indicates
.htaccessis missing, corrupted, or has the wrong rewrite rules. Connect via FTP (enable hidden files), check whether.htaccessexists in the WordPress root, and if it does, verify it contains the WordPress rewrite block beginning with# BEGIN WordPress. - Permalink changes not taking effect after Save Changes: A full-page caching plugin may be serving the old URL format from cache. Clear the WordPress page cache, CDN cache, and browser cache after changing permalink settings to ensure the updated URL structure is reflected immediately.
- Custom permalink structure producing 404s: Verify the custom structure uses valid WordPress permalink tags (
%postname%,%category%, etc.) and that the tags are in a supported combination. Some tag combinations require the post name tag to be last in the structure for WordPress’s rewrite engine to disambiguate URLs correctly.
Our guide on fixing the WordPress too many redirects error covers redirect loops that can result from conflicting permalink configurations alongside HTTPS enforcement rules. Our guide on how to change WordPress URL safely covers the broader URL change process that complements the permalink structure change covered here — the two operations together describe the complete URL management surface in WordPress. The WordPress documentation on using permalinks covers every available permalink tag, the rewriting mechanism, and the custom structure format in complete technical detail. Related: How to Fix WordPress Cron Not Running Safely With a Proven Reliable Method.





