I fished around the internet for a solution to this, tried a plugin or two to remove the /category/ from wordpress url’s.
While some of these plugins are good, the category link still display’s /category/.
Also I’ve tried putting in ./ in the category base options in permalinks settings.
Does anyone know how I could do like a php search and replace or something like that?
A cleaner solution:
Using WordPress 3.9.1 (latest version as of this post) I simply added a single line to my theme’s
functions.php
…Then I opened Settings > Permalinks and hit Save. This appears to flush the permalink cache and makes it work.
http://wordpress.org/extend/plugins/wp-no-category-base/ and it doesn’t alter permalinks, so removing it reverts the structure with no problem. And you don’t have to alter core files.
https://wordpress.org/plugins/no-category-base-wpml/ is a plugin that solves the problem and works with current versions of WordPress.