◦ Comprehensive security
◦ 24/7 support
WordPress Guide → Build → Change Permalinks
How to change WordPress permalinks for one category only
Sometimes, the default WordPress category URL just doesn’t cut it. Maybe you want cleaner URLs, better SEO targeting, or custom slugs that reflect your brand voice. The good news? You don’t need to change your entire permalink structure—just the one category you care about.
Let’s walk through how to change a single category’s permalink using a plugin or custom code, plus how to handle redirects, test your changes, and improve SEO.
Get fast, reliable hosting for WordPress
Power your site with the industry’s fastest, most optimized WordPress hosting
1. Use a plugin to change a single category permalink
This method is best for beginners or non-developers who want a quick, reliable solution without touching theme code.
Option A: Custom Permalinks plugin
- Go to Plugins > Add New in your WordPress dashboard.
- Search for Custom Permalinks and install this plugin.
- Once activated, go to Posts > Categories.
- Hover over the category you want to change and click Edit.
- You’ll now see a Custom Permalink field below the category name.
- Enter your desired slug (e.g., /insights/ instead of /category/news/) and click Update.
This plugin works on posts, pages, and taxonomy slugs. It’s simple and effective—but doesn’t offer bulk editing or advanced automation.
Option B: Permalink Manager Lite plugin
- Go to Plugins > Add New.
- Search for Permalink Manager Lite and install it.
- Activate the plugin, then navigate to Permalink Manager > Tools.
- Open the Permastructures tab and scroll to Taxonomies > Categories.
- Enable custom permalinks for categories if it isn’t already.
- Go to Edit Permalinks, find the category you want to change, and enter your custom slug.
- Save your changes.
Permalink Manager is especially helpful if you need more granular control, work with multilingual plugins, or want to tweak multiple taxonomy types.
2. Modify your theme template files (advanced method)
Developers can change category permalinks directly in theme code for total control.
Step 1: Create a child theme
To preserve your changes through theme updates, generate a child theme using the Create Block Theme plugin:
- Install and activate the plugin.
- Go to Appearance > Create Block Theme.
- Select Create child of [your active theme], name it, and click Create.
- Activate the new child theme when prompted.
Step 2: Identify the correct template file
Most themes use category.php or archive.php for category archive pages. If those don’t exist, check for a fallback like index.php.
You can then use WordPress’s template hierarchy to confirm.
Step 3: Filter the permalink structure
Add the following code to your child theme’s functions.php file:
add_filter('term_link', 'custom_category_permalink', 10, 3);
function custom_category_permalink($url, $term, $taxonomy) {
if ($taxonomy === 'category' && $term->slug === 'news') {
return home_url('/insights/');
}
return $url;
}Replace ‘news’ and ‘/insights/’ with your actual category slug and new URL.
Step 4: Add rewrite rules
To make the new permalink work properly, add this:
add_action('init', function() {
add_rewrite_rule('^insights/?$', 'index.php?category_name=news',
'top');
});Then go to Settings > Permalinks and click Save Changes to flush rewrite rules.
3. Set up 301 redirects to preserve SEO
When you change a permalink, your old URL can break unless you redirect it.
Option A: Use a redirection plugin
- Install the Redirection plugin.
- Go to Tools > Redirection and follow the setup wizard.
- Add a new redirect from the old category URL (e.g., /category/news/) to the new one (e.g., /insights/).
- Use 301 as the redirect type for SEO.
Option B: Manual .htaccess redirect
If your server runs Apache, add this to your .htaccess file:
Redirect 301 /category/news/ /insights/Be sure to back up your .htaccess file before editing it.
4. Test and troubleshoot your changes
After editing a permalink, make sure everything works properly.
- Visit the new category URL and confirm it loads.
- Test the old URL to ensure it redirects correctly.
- Use tools like Screaming Frog, Ahrefs, or Google’s URL Inspection Tool to verify crawl behavior.
- Go to Settings > Permalinks and click Save Changes again to flush rewrite rules.
- Clear any plugin, server, or CDN-level caching.
How to customize child category permalinks separately
You can also apply different slugs to subcategories without changing the parent.
With a plugin
Both Custom Permalinks and Permalink Manager let you edit individual subcategories directly. Just repeat the same steps for each one.
With code
In your functions.php, check if the category has a parent:
if ($taxonomy === 'category' && $term->slug === 'gear' && $term->parent) {
return home_url('/equipment/gear/');
}SEO tip
Flattening or simplifying child category URLs helps streamline user navigation, especially for ecommerce or content-heavy sites.
The SEO implications of changing permalinks for one category
Changing permalinks can help or hurt SEO depending on how you handle it.
Pros:
- Shorter URLs with relevant keywords can improve click-through rates.
- Clean, targeted URLs help users and search engines understand content.
- Custom slugs allow you to highlight your niche or brand in the URL.
Cons:
- Traffic can drop if redirects aren’t handled properly.
- Google may temporarily remove outdated URLs from search results.
- You’ll need to manually update internal links and resubmit your sitemap.
Best practices:
- Always use 301 redirects for changed URLs.
- Update all internal links to the new permalink.
- Regenerate your sitemap and submit it to Google Search Console.
Benefits: Why change the permalink for just one category?
Customizing a single category URL can be a smart move for targeted SEO, branding, or user experience.
- Better SEO targeting: Use keywords that reflect how people search for specific topics.
- Improved branding: Turn generic slugs like /category/news/ into on-brand ones like /insights/.
- Cleaner URLs: Shorter, simpler URLs are easier to remember and share.
- Landing page optimization: Make a specific category the focal point of a campaign.
- User trust: Descriptive URLs help users know what they’re clicking.
Next steps for changing WordPress permalinks for one category only
Changing just one category’s permalink can make a real difference in SEO, branding, and navigation—without touching your full site structure.
If you want a fast, no-code solution, try Custom Permalinks or Permalink Manager. If you’re a developer or want custom logic, using filters and rewrite rules gives you complete control.
Ready to upgrade your WordPress experience? Professional hosting improves speeds, security, and reliability for a website and a brand that people find engaging and trustworthy.
Don’t want to deal with server management and maintenance? Our fully managed hosting for WordPress is the best in the industry. Our team are not only server IT experts, but WordPress hosting experts as well. Your server couldn’t be in better hands.
Click through below to explore all of our hosting for WordPress options, or chat with a WordPress expert right now to get answers and advice.
Additional resources
How to build a WordPress site →
A complete beginner’s guide that covers 9 key steps to a successful launch
Give your website the dark mode treatment (WordPress) →
Learn how to enable dark mode on your WordPress website to enhance user experience and reduce eye strain.
How to use WordPress Gutenberg blocks →
A complete beginner’s guide to Gutenberg blocks