The Complete Guide to Slugs, Permalinks, and URL Structure

A good permalink structure is short, readable and, above all, stable: usually a section folder plus a slug, like /blog/my-post, with no date unless you publish news, one consistent rule for trailing slashes, and a permanent redirect for any URL you ever change. Getting the slug itself right is covered in our post on SEO-friendly URL slugs and kebab-case. This guide is about the URL structure around the slug, and about keeping those URLs working for years.
Slug, permalink, URL structure: three different things
These words get used interchangeably, but they name different layers:
- Slug: the human-readable last segment, such as
slugs-permalinks-url-structure. - Permalink: the full address of one piece of content, meant to stay the same for as long as the content exists.
- URL structure: the pattern every permalink on your site follows, such as
/blog/{slug}or/{year}/{month}/{slug}.
You pick the structure once, early, and then live with it. That's why it deserves more thought than it usually gets.
Common permalink structures compared
WordPress's permalink settings offer plain IDs, dates with names, post names alone and a custom structure. Here are those patterns, plus a category path, with our take on each:
| Pattern | Example | Good for | Watch out for |
|---|---|---|---|
| ID only | /?p=123 | Never needing to change | Tells readers nothing |
| Date and name | /2026/05/14/my-post/ | News, changelogs | Makes evergreen pages look old |
| Section and name | /blog/my-post | Most sites | Little, if sections are broad |
| Category path | /guides/seo/my-post | Large, stable hierarchies | Breaks when you recategorize |
| Name only | /my-post | Small sites | Posts and pages compete for names |
Google's URL guidance asks for "readable words rather than long ID numbers," which argues against the first row for anything public-facing. Of the rest, section-and-name is the safest default. It's what this blog uses: every post lives at /blog/ followed by its slug.
Should permalinks include dates?
Google publishes no preference, so this is a judgment call. Our view: put dates in URLs only when the date is part of what the page is.
For a news story, a release note or an event recap, the date is meaningful and it prevents collisions. Next year's "annual meetup recap" gets its own address instead of fighting this year's for the same slug.
For evergreen content, dates work against you. A guide you refresh every year still says /2019/ in every link, and readers may judge freshness from the URL before they've read a word. You also can't fix that without changing the URL, which brings us to redirects. The same logic applies to a year inside a slug: best-tools-2026 is fine for a one-off roundup, but plan for what happens to it in 2027.
How deep should your URL structure go?
Folders in a URL are useful when they reflect real, lasting groupings. Google's SEO Starter Guide notes that if you have more than a few thousand URLs, grouping similar topics in directories can help Google learn how often the URLs in each directory change. For smaller sites, folders are mostly for people and for you: they make analytics reports easy to filter by section, and they let you write one rule (in robots.txt, a cache setting or a redirect) that covers a whole section.
The trap is putting volatile information in the path. A category is volatile. If /guides/seo/my-post moves to the "writing" category, either the URL lies or it changes. One level of broad sections (/blog/, /tools/, /docs/) is enough for most sites, and you can show categories in the page and breadcrumbs without baking them into the permalink.
Trailing slashes: pick one and redirect the other
To Google, /foo and /foo/ are two separate URLs. A 2010 post on Google's Search Central blog put it plainly: Google treats each URL "separately (and equally)" whether or not it has a trailing slash. (The bare domain is the exception: https://example.com and https://example.com/ are equivalent.)
Neither style is better. What matters is consistency. Choose one form, use it in every internal link and in your sitemap, and have the other form redirect to it. Many frameworks and hosts have a single setting for this; check yours before you launch, because changing it later means redirecting every URL on the site.
Changing a slug safely with 301 redirects
Sometimes a URL has to change: a typo, a rebrand, a merge of two articles. Google's documentation on redirects recommends a permanent server-side redirect whenever you need to change how a page's URL appears in search results. Status 301 and 308 both mean "moved permanently". Here's the process we'd follow:
- Make a map. List every old URL next to its new one. If you're changing many, paste your old sitemap's URLs and the new ones into our text diff checker; every line that disappeared needs a redirect.
- Add the redirects on the server. A permanent redirect returns a 301 (or 308) status and a
Locationheader. Two common examples:
# Apache (mod_alias)
Redirect permanent "/blog/old-slug" "https://example.com/blog/new-slug"
# NGINX
location = /blog/old-slug {
return 301 https://example.com/blog/new-slug;
}- Update your own links. Point internal links, canonical tags and the sitemap straight at the new URL. Redirects are a safety net for other people's links, not a substitute for fixing yours.
- Avoid chains. If a URL has moved twice, send the oldest one directly to the final address. Google's site-move guide says Googlebot follows up to 10 hops but advises redirecting to the final destination directly, or keeping chains to ideally no more than 3.
- Keep redirects for a long time. The same guide says to keep them "generally at least 1 year," and from users' perspective to consider keeping them indefinitely. Old links in emails, PDFs and bookmarks don't expire.
- Never reuse an old URL for different content. Someone, somewhere, linked to it expecting the original.
If you can't redirect at all (some hosted platforms don't allow it), Google suggests a rel="canonical" link element on the duplicate page instead. It tells search engines which URL you prefer, but it doesn't move visitors anywhere, so use a real redirect when you have the option.
Non-ASCII slugs: native script, transliteration or English?
Google recommends using words in your audience's language in URLs, giving examples in German and Japanese, and mentions transliterated words as an option too. In links, non-ASCII characters should be percent-encoded. Browsers handle that for you, but it changes what people see once a link leaves the address bar:
Readable: https://example.com/ペパーミント
Encoded: https://example.com/%E3%83%9A%E3%83%91%E3%83%BC%E3%83%9F%E3%83%B3%E3%83%88Six characters became 54. Browsers usually show the readable form in the address bar, but server logs and some apps show the encoded one. Your options:
- Native script is the most natural for readers of that language and follows Google's advice directly. Accept that links will sometimes look long.
- Transliteration (ペパーミント written in Latin letters as
pepaminto) keeps URLs short, but only helps readers who know the convention. - English slugs make sense for a site whose structure is shared across languages, though they read oddly to people who don't speak English.
One technical trap: the same visible text can be stored in different Unicode forms. An é typed as one character encodes as %C3%A9, but an e followed by a combining accent encodes as e%CC%81. Those are different URLs. Normalize slugs to one form (NFC is the usual choice) before you save them. The Slugify option in our case converter returns NFC and keeps non-Latin scripts, while stripping accents from Latin letters.
A permalink structure checklist
- One broad section folder plus a slug, unless you have a clear reason for more.
- Dates only for content where the date is the point.
- No categories or other volatile data in the path.
- One trailing-slash rule, enforced with redirects, used everywhere.
- Every changed URL gets a direct 301 to its final home, kept for at least a year.
- Internal links, canonicals and the sitemap always point at the final URL.
- Non-ASCII slugs normalized to NFC, and chosen deliberately.


