This plugin will remove the /category/ base directory that WordPress adds to category links. It’ll also go beyond that and automatically 301 redirect the old /category/ links to the new, pathless category link.
Once installed, the plugin will automatically change all your category links on the website. You do not need to modify any of your WordPress themes or code.
There is also an admin panel that will let you enable/disable 301 redirects, as well as change the text to remove from the category link.
Version 1.1 (Dec-31-2008) – Added the
Update category links with pages setting to modify category links that contain /page/ to become /?paged
Version 1.0 (Dec-30-2008) – Initial release
- Remove category base directories, /category/ by default, from all category links on the website. So,
http://www.anothercoder.com/category/newswill automatically become
- Pathless category permalinks provide improved SEO
- Automatically 301 redirect old links, e.g.
http://www.anothercoder.com/category/news, to the new pathless category permalink, e.g.
Post comments and get help on the Pathless Category Links page of my blog.
- Activate the plugin through the ‘Plugins’ menu in WordPress
- Use the
Settings > Pathless Category Linkssection to modify plugin settings
- What if other links on my site contain /category/?
You can disable the automatic 301 redirect feature via the settings. If it is enabled, then ANY link that contains the base category directory (by default /category/) will be redirected with the base category directory removed.
- It’s not working?
The first thing to check is your
permalink settings. Is your permalink structure
/%postname%? If so, the plugin will not work because WordPress will not be able to tell the difference between a category page and a post page without the
/category/in the URL. I would recommend the permalink settings:
/%category%/%postname%, which is what I use.
If your permalink settings are okay, then follow these steps.
- Disable the plugin
- Go to your category link, something like
* Is that working? If not, check your other plugins and WordPress installation as something is wrong there.
1. Manually remove the
/category/from your link and go to that URL, something like
* Is that working? If not, check your other plugins and WordPress installation
1. Once you can get the URL without
/category/working manually, re-enable the plugin and you’ll be all set.
You can also report bugs and get advice on the Pathless Category Links page on blog.
- Why do my category links contain `/?paged=[0-9]`?
WordPress does not allow the following link
http://www.anothercoder.com/news/page/2, it only works with
http://www.anothercoder.com/category/news/page/2. So, this is a work around to turn ONLY category links that have pages to be rewritten as
Update category links with pagessetting in the
Settings > Pathless Category Linkssection allows you to disable this work around. But, if it is disabled, then your links will not have the base category directory removed, nor will a 301 redirect be performed.
So, it’s up to you, do you want:
http://www.anothercoder.com/category/news/page/2or do you want
Contributors & Developers
“Pathless Category Links” is open source software. The following people have contributed to this plugin.Contributors