Explainers · Explainer
What Is a Permalink? A Plain Explanation

Short answer
A permalink is the permanent web address of a single post, page, or category on your WordPress site. WordPress offers six structures, from Plain (?p=123) to Post name, and the Post name structure suits most sites because it is short and readable.
Key takeaways
- A permalink is the permanent address of one post, page, or category, and it should never change.
- WordPress offers six permalink structures, and new installs start on Plain (?p=123).
- The Post name structure suits most sites because it is short, readable, and free of dates.
- Structure tags such as %year%, %postname%, and %category% build each address from post data.
- Changing a permalink breaks old links unless you add a 301 redirect to the new address.
What is a permalink?
A permalink is the permanent web address of a single post, page, category, or other piece of content on your WordPress site.
WordPress.org defines permalinks as the permanent URLs of posts, pages, categories, and other archive pages, and says these URLs should never change.
The WordPress.org permalink guide is the source for the definitions in this guide. The name comes from “permanent link”: the address is meant to stay the same for the life of the content.
Other sites link to your article with its permalink, readers share it on social media, and Google uses it when it indexes the page. That is why the address matters long after you hit publish.
What are the three types of permalinks in WordPress?
WordPress has three permalink types: Plain, Pretty, and Almost Pretty.
A Plain permalink looks like example.com/?p=123, where p is the parameter and 123 is the post ID in the database. WordPress.org calls this the “Ugly Permalink” and says it works on all server environments but is not easy to read and not built for search engines.
Pretty permalinks use words instead of numbers, such as example.com/2012/post-name/ or example.com/2012/12/30/post-name. WordPress.org describes them as friendly for search engines and easy to read, since the words in the address say what the page is about.
Almost Pretty permalinks look the same except for /index.php/ at the start, as in example.com/index.php/yyyy/mm/dd/post-name/. They exist for servers that cannot run the rewrite rules behind Pretty permalinks.
Which permalink structure should you pick?
For most sites, the “Post name” structure is the best choice.
The “Post name” structure builds addresses from the post title only, such as example.com/sample-post/. It keeps URLs short, readable, and free of dates that can make old posts look stale.
WordPress offers six options on the “Settings → Permalinks” screen: Plain, Day and name, Month and name, Numeric, Post name, and Custom Structure. The default setting is Plain, which WordPress sets when you install it, so a new site needs this change early.
Day and name (/%year%/%monthnum%/%day%/%postname%/) suits a daily news site where the date is part of the story. Month and name drops the day for blogs where the month is enough. Numeric uses only the post ID, as in /archives/123, and is rarely the best pick.
Google's own URL guidance backs the short, word-based choice. Google Search Central recommends readable words instead of long ID numbers and hyphens instead of underscores, and notes that Google treats /APPLE and /apple as two different addresses.
Our guide to the best permalink structure for SEO compares these options in more detail.
What do the permalink structure tags mean?
Structure tags are placeholders that WordPress fills in for each post, such as %year% for the year and %postname% for the slug.
WordPress.org lists ten structure tags. %year% gives the four-digit year, %monthnum% gives the two-digit month, and %day% gives the two-digit day. %hour%, %minute%, and %second% add the time the post went live.
%post_id% inserts the post ID from the database, and %postname% inserts the sanitized title of the post. WordPress.org gives the example of “This Is A Great Post!” becoming this-is-a-great-post in the address. %category% inserts the category slug, with nested sub-categories shown as nested folders, and %author% inserts the author name slug.
Two rules apply when you build a custom structure. Never type your site address into the field, since only tags belong there. End the structure with %post_id% or %postname% so every address points to one post, as in /%year%/%monthnum%/%day%/%postname%/.
| Tag | What it inserts | Example |
|---|---|---|
%year% | Four-digit year | 2026 |
%monthnum% | Two-digit month | 11 |
%day% | Two-digit day | 21 |
%post_id% | Post ID from the database | 423 |
%postname% | Sanitized post title (slug) | this-is-a-great-post |
%category% | Category slug | news |
%author% | Author name slug | jane-smith |
How do you change your permalink structure?
Open “Settings → Permalinks” in your dashboard, pick a structure, and click “Save Changes”.
Only an administrator sees the Permalinks screen. Log in as an administrator, open “Settings” in the left menu, then click “Permalinks”. Pick one of the six options or type your own pattern in the “Custom Structure” field.
WordPress fills in the “Custom Structure” box from the option you pick, so you can see the pattern before you save. Click “Save Changes” at the bottom of the page and WordPress applies the new pattern to every post and page at once.
Your host must have the server set up for Pretty permalinks to work. WordPress.org notes that the host should have made the needed server changes, and says to contact the host if the new addresses return errors.
On Apache servers, the rewrite work is done by mod_rewrite, and the Apache mod_rewrite docs explain that a RewriteRule has three parts: a pattern, a substitution, and flags.
Our step-by-step guide to how to set up permalinks in WordPress walks through the same screen with screenshots of each option.
How do you check the permalink of a post or page?
Open the post in the editor and look at the URL field in the post settings sidebar.
In the block editor, the post sidebar has a URL field that shows the full address. Click it to edit just the last part, which is the slug, without touching the rest of the structure.
You can also check the address on the front end. Open the post in a private browser window and read the address bar. The address you see there is the one Google and your readers will use.
If the address shows ?p=123 instead of words, your site still uses the Plain structure. That is the sign to switch it under “Settings → Permalinks” before you publish much more content.
What happens to old links when you change a permalink?
Old links stop working unless you redirect them to the new address.
WordPress does not create redirects on its own when you change the permalink structure. A link from another site, a bookmark, or a search result that points to the old address will land on a 404 error page.
WordPress.com states the same warning in its own permalink guide: when you change the permalink setting, posts may not automatically redirect from the old links, so use a redirection plugin. The same applies to a self-hosted WordPress site.
Set up a redirect for every changed address before you change the structure, or right after. A 301 redirect sends both readers and search engines to the new address and passes the old page's standing to it.
Our guide to how to change permalinks without breaking SEO explains how to map old addresses to new ones.
What mistakes should you avoid with permalinks?
The biggest mistake is changing the permalink structure on a live site without redirects.
A second mistake is using dates in the structure for content that stays useful for years. A guide written in 2021 with /2021/ in its address looks dated even when the advice is still current, and readers may skip it in search results.
A third mistake is letting the address grow long. A slug that repeats the whole title word for word is hard to share and hard to read. Keep the slug to the words that say what the page is about.
A fourth mistake is changing the category and tag bases without a reason. WordPress.org notes that the default bases are category and tag, and that you can change them but cannot remove them from the address. Changing them adds one more set of addresses to redirect.
Finally, do not put your site address in the “Custom Structure” field. WordPress.org warns that only structure tags belong there, and the pattern must end with %post_id% or %postname% so each address points to a single post.
If a change goes wrong and posts show 404 errors, our guide to fix permalinks not working covers the common causes.
Our guide to how to set up 301 redirects in WordPress shows how to repair the old addresses.
Frequently asked questions
What is the difference between a permalink and a slug?
A permalink is the full permanent address of a post or page, while the slug is only the last part of that address. For example, in example.com/my-post, the permalink is the whole address and my-post is the slug. You set the pattern for permalinks under Settings, and you edit the slug for one post in its editor.
Should I use dates in my permalink structure?
Only if the date is part of the story, as on a daily news site. For guides, reviews, and business pages, dates in the address make old posts look stale even when the advice is still current. The Post name structure leaves the date out, so the address stays useful for years.
Can I change my permalink structure later?
Yes, you can change it at any time under Settings and then Permalinks, but every old address will break unless you redirect it. Add a 301 redirect from each old address to its new one before or right after the change, then check the old links to confirm they land on the right page.
Why do my permalinks show a 404 error?
The most common cause is a rewrite problem on the server. Pretty permalinks need the server to be set up for them, so first re-save the structure under Settings and then Permalinks, which flushes the rewrite rules. If the error stays, ask your host to check the server setup for your site.
Do permalinks affect SEO?
They help in a small way. A short address with readable words tells readers and search engines what the page is about, and Google recommends readable words over long ID numbers with hyphens between words. The page content and the links pointing to it matter far more than the address itself.
Sources
- Customize permalinks WordPress.org
- URL Structure Best Practices for Google Search Google Search Central
- Apache mod_rewrite Introduction Apache HTTP Server Documentation
- Change the permalink structure WordPress.com Support
Is your product missing, or something out of date?
Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.
Thanks — we review requests within 3 business days.
Related guides
About the editors
Researched from the primary sources listed above and checked against our editorial rules before publishing.


