AIOSEO is the WordPress SEO plugin. Boost SEO rankings with AI SEO tools, schema, meta descriptions, XML sitem...
Reduce permalinks (category or post) that include entire hierarchy of categories to just having the lowest level category.
The Single Category Permalink plugin modifies how permalinks are generated for posts in WordPress by simplifying the category structure. Instead of including the entire hierarchy of categories, it allows you to use only the lowest category in the hierarchy for the permalink. This can lead to cleaner and shorter URLs for your posts.
This plugin is suitable for users who want to streamline their permalink structure without losing the functionality of hierarchical categories. It provides a 302 redirect from the original longer URLs to the new shorter ones, ensuring that existing links continue to work.
Best for: This plugin suits WordPress users looking to simplify their permalink structure.
What it does well
Where it falls short
The Single Category Permalink plugin offers a straightforward solution for cleaner URLs, though users should consider the directory score when evaluating its reliability.
Scott Reilly's own description of Single Category Permalink, lightly tidied.
Reduce permalinks (category or post) that include entire hierarchy of categories to just having the lowest category in the hierarchy.
By default, WordPress replaces the %category% permalink tag in a custom permalink structure with the entire hierarchy of categories for the post’s first matching category. For example, assuming your site has a hierarchical category structure like so:
Applications
|_ Desktop
|_ Web
|_ WordPress
By default, if you have a permalink structure defined as %category%/%year%/%monthnum%/%day%/%postname%, your post titled “Best Plugins” assigned to the “WordPress” category would have a permalink of:
https://www.example.com/applications/web/wordpress/2008/01/15/best-plugins
If you activate the Single Category Permalink plugin, this would be the permalink generated for the post (and recognized by the blog):
https://www.example.com/wordpress/2008/01/15/best-plugins
In order for a category to be used as part of a post’s permalink structure, %category% must be explicitly defined in the Settings -> Permalinks admin page as part of a custom structure, i.e. /%category%/%postname%.
For category links, %category% is implied to follow the value set as the “Category base” (or the default category base if none is specified). So if your category base is ‘category’, the above example would list posts in the ‘WordPress’ category on this category listing page:
https://www.example.com/category/applications/web/wordpress/
With this plugin activated, that link would become:
https://www.example.com/category/wordpress/
NOTE: The fully hierarchical category and post permalinks will continue to work. The plugin issues a 302 redirect to browsers and search engines pointing them to the shorter URL.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
The plugin exposes one filter for hooking. Code using this filter should ideally be put into a mu-plugin or site-specific plugin (which is beyond the scope of this readme to explain). Less ideally, you could put them in your active theme’s functions.php file.
Other plugins for managing URLs.
AIOSEO is the WordPress SEO plugin. Boost SEO rankings with AI SEO tools, schema, meta descriptions, XML sitem...
Manage 301 & 302 redirects. Simple redirection & redirects validation. Includes redirect stats & 4...
Redirect to any page or URL, execute scripts after submission, save data to the database, and unlock additiona...
Permalink Manager enhances WordPress’s built-in URL system, allowing you to change the URLs of native and cust...
Lifetime SSL solution - Free SSL certificate & HTTPS redirect, fix insecure site / SSL errors, Security he...
Manage 301 redirects, track 404 errors, and improve your site. No knowledge of Apache or Nginx required.