How to Change a WordPress Slug (Posts, Pages & Categories)
5 min read
WordPress automatically generates a URL slug from your post title, but the default is rarely optimal. Here's how to change it for any content type — and how to avoid breaking your SEO when you do.
Changing a Post or Page Slug
Block Editor (Gutenberg)
- Open the post or page in the editor
- Click the Settings panel (gear icon) on the right
- Under Summary, find the URL section
- Click the URL to edit the slug
- Type your new slug (use lowercase, hyphens, no spaces)
- Click Update to save
Classic Editor
- Open the post in the editor
- Below the title, you'll see the permalink with an Edit button
- Click Edit, type the new slug, click OK
- Click Update
Quick Edit
- Go to Posts > All Posts
- Hover over a post and click Quick Edit
- Edit the Slug field directly
- Click Update
Changing a Category or Tag Slug
- Go to Posts > Categories (or Tags)
- Hover over the category and click Edit
- Change the Slug field
- Click Update
Changing the Author Slug
WordPress uses the username as the author archive slug (/author/username/). Since you can't change the username directly, use the Edit Author Slug plugin to customize it.
Bulk Editing Slugs
For large sites, manually editing each slug is impractical. Options include:
- Quick Edit: Fastest for small batches (5-20 posts)
- Database query: Direct SQL for mass updates (back up first!)
- Plugin: Plugins like "Permalink Manager" allow bulk slug editing with a UI
SEO Considerations When Changing Slugs
Changing a slug changes the URL, which means:
- All existing backlinks break. Any links from other sites, social media, or bookmarks will 404.
- Search engine rankings reset. Google treats the new URL as a new page until the redirect is discovered.
- Internal links break. Any links within your own site pointing to the old URL will 404.
Always Set Up a 301 Redirect
After changing a slug, redirect the old URL to the new one:
- Plugin method: Use "Redirection" or "Yoast SEO Premium" (auto-redirects on slug change)
- .htaccess method:
Redirect 301 /old-slug /new-slug - Nginx method:
rewrite ^/old-slug$ /new-slug permanent;
WordPress Slug Best Practices
- Set the right slug before publishing — changing later is costly
- Remove stop words: "how-to-change-slug" not "how-to-change-a-wordpress-slug"
- Include your target keyword
- Keep it under 5 words
- Use only lowercase letters and hyphens
Generate Optimized WordPress Slugs
Use our WordPress slug generator to create SEO-optimized slugs from your post titles. For general use, try the URL slug generator or the blog slug generator.