
Use a few readable words from the title, in lowercase, separated by hyphens. Google recommends hyphens over underscores. Set the slug before publishing, and add a 301 redirect if you ever change it.
The slug is the part of the URL after your domain. It is a small thing, but a good one is easy to read and share, and a changed one can break links. Here is how to get it right the first time.
What Google recommends
- Use simple, descriptive words that make sense to people.
- Use hyphens to separate words, not underscores.
- Avoid long ID numbers and unneeded parameters where you can.
- Use the language your readers use.
Examples
| Weak slug | Better slug |
|---|---|
| /?p=123 | /meta-description-length/ |
| /the-ultimate-list-of-the-best-ways-to-use-hashtags-in-2026/ | /how-to-use-hashtags/ |
| /Meta_Description_Length/ | /meta-description-length/ |
Setting the slug in WordPress
- Open the post in the editor.
- In the post settings panel, find the URL or permalink field.
- Type the slug, or paste one from the URL Slug Generator.
- Publish.
Changing a live slug
Changing the slug of a published page changes its URL. Old links and Google results then lead to a missing page unless you add a 301 redirect from the old URL to the new one. If a page already ranks, leave its slug alone.
A quick slug formula
- Start from the post title.
- Keep the two to five words that describe the topic.
- Drop numbers, years and small words that add no meaning.
- Use lowercase and hyphens.
- Read it aloud. A person should be able to guess the page from it.
| Title | Slug |
|---|---|
| 12 Easy Eid Desserts You Can Make in 30 Minutes | easy-eid-desserts |
| How I Fixed My Slow WordPress Site in One Afternoon | fix-slow-wordpress-site |
| The Complete Beginner’s Guide to Urdu Calligraphy | urdu-calligraphy-beginners |
Why dates and numbers age badly
A slug with a year or a list count becomes wrong when you update the post. If 12 desserts become 15, or 2026 becomes 2027, the URL no longer matches the page. A slug without them lasts as long as the topic does.
Mistakes to avoid
- Keeping the full title as the slug, which makes long, messy URLs.
- Using capitals or underscores.
- Stuffing several keywords into one slug.
- Creating two posts with nearly the same slug.
- Changing a live slug without a redirect.
After you publish
Once a post is live and shared, treat its slug as permanent. If you update the content later, keep the same address so links, shares and search history stay intact. Generate a clean slug in seconds with the slug generator, and pair it with a clear title from the SEO tag generator. Read which SEO tags matter for the rest of the page setup.
Setting the slug in WordPress, step by step
- Open the post in the editor.
- In the Post panel on the right, click the URL or Permalink field.
- Type the new slug in lowercase with hyphens.
- Save the draft and check the preview address.
Do this before you publish. Changing it afterwards means redirects and possible lost visits.
Slugs for categories and pages
The same rules apply to category and page slugs. Keep category slugs to one or two words, such as recipes or travel-tips, because they appear in many URLs if your permalinks include the category. Page slugs such as about and contact should be short and obvious, so visitors can type them from memory. Consistent, simple slugs across the whole site make your URLs easier to share, read and trust.
A good slug is one you never need to change.
Set it carefully once, and it will serve the post for years.
Frequently Asked Questions
Should slugs include stop words like “the” and “and”?
Is a short slug better for SEO?
Can I use Urdu or Arabic letters in a slug?
You can, but they are encoded into long strings when shared. A short transliterated or English slug is easier to read and copy.
How long should a slug be?
Three to five meaningful words is enough for most posts.
Does WordPress redirect old slugs automatically?
WordPress tries to redirect some changed post slugs, but always check that the old URL lands on the new page, and add a 301 redirect if it does not.
Sources
Checked November 2026. Platforms change their rules, so check the linked page if a number looks different in your app.


