WP Manifestindependent plugin directory
manifest / seo / shft-no-category-base

CatRmove

WordPress Plugin removes /category/ slug

★ 0stars

Install

Download source zip No release zip yet

This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/aoshiftctrl/shft-no-category-base/archive/refs/heads/main.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Lightweight WordPress plugin that removes the category base from category URLs (/category/news/ → /news/) and redirects old URLs with a 301.

Why?

WordPress puts /category/ in front of every category URL. That makes URLs longer and less readable. This plugin removes the base without a catch-all rule, so pages, posts and all other URLs stay untouched.

Features

  • Category links without the base
  • One explicit rewrite rule per category path (including feed, embed and pagination)
  • 301 redirect from old URLs, including feeds, pagination and query strings
  • With /%category%/%postname%/ permalinks: old post URLs are redirected to the canonical permalink
  • If the URL without the base already belongs to a published page, a post or a WordPress path, the existing content wins and the category keeps its base
  • Rewrite rules are rebuilt automatically on category changes
  • No settings

Installation

  1. Download the latest release ZIP
  2. Upload via Plugins → Add New → Upload Plugin
  3. Activate

Requirements

  • WordPress 6.2+
  • PHP 8.0+

Changelog

See readme.txt.

License

CC BY-ND 4.0 See https://creativecommons.org/licenses/by-nd/4.0/.