该插件尚未通过WordPress的最新3个主要版本进行测试。 当与较新版本的WordPress一起使用时,可能不再受到维护或支持,并且可能会存在兼容性问题。

Remove Category URL

描述

This plugin will completely remove the ‘/category/’ from your permalinks ( e.g. mydomain.com/category/my-category/ to mydomain.com/my-category/ ).

No configuration is required

Features

  1. Better and logical permalinks like mydomain.com/my-category/ and mydomain.com/my-category/my-post/.
  2. Simple plugin – No configuration is required.
  3. No need to modify wordpress files.
  4. Doesn’t require other plugins to work.
  5. Compatible with sitemap plugins.
  6. Compatible with WPML.
  7. Works with multiple sub-categories.
  8. Works with WordPress Multisite.
  9. Redirects old category permalinks to the new ones (301 redirect, good for SEO).

Heads up:

Read the FAQ before use.

Want to help? Use the support

屏幕截图

  • No Category URL

安装

  1. Upload remove-category-url.zip to the /wp-content/plugins/ directory.
  2. 通过WordPress的“插件”菜单激活插件。
  3. That’s it! You sould now be able to access your categories via http://mydomain.com/my-category/

常见问题

Why should I use this plugin?

Use this plugin if you want to get rid of WordPress’ “Category base” completely. The normal behaviour of WordPress is to add ‘/category’ to your category permalinks if you leave “/category” blank in the Permalink settings. So your category links look like mydomain.com/category/my-category/. With this plugin your category links will look like mydomain.com/my-category/ (or mydomain.com/my-category/sub-category/ in case of sub categories).

Will it break any other plugins?

As far as I can tell, no. I have been using this on several blogs for a while and it doesn’t break anything.

Won’t this conflict with pages?

Simply don’t have a page and category with the same slug. Even if they do have the same slug it won’t break anything, just the category will get priority (Say if a category and page are both ‘xyz’ then mydomain.com/xyz/ will give you the category). This can have an useful side-effect. Suppose you have a category ‘news’, you can add a page ‘news’ which will show up in the page navigation but will show the ‘news’ category.

The plugin has been uninstalled, but the slug /category/ did not reappear why?

A particular installation does not allow the rewrite feature in disabling the plugin. Try after disabling the plugin, save permanent links again.

评价

2020年11月11日
I struggled to get the Category base removed using WordPress' Permalink structure and it always resulted in Error 404s. Adding this plugin (which I should've done in the first place), saved oodles of time.
2020年6月6日
I needed to remove the 'category' word from url and by the classic procedure from WordPress default setting I faced a bit of side effects...problems of redirect and other stuff. This plugin with only the installation has resolved all my problems.
2019年12月22日
The plugin can also be a bit useful, but if you deactivate it it will break the whole site. In the F.A.Q. it doesn't even tell you how to fix it in case you want to deactivate it, I had to search here in the reviews and I also did several tests. As a user already said, to solve the problem of broken links of pages, articles and everything, you just have to change your template momentarily and put back what you had, at least for me it worked. And I put 2 rating stars for not being too bad.
阅读所有52条评价

贡献者及开发者

“Remove Category URL” 是开源软件。 以下人员对此插件做出了贡献。

贡献者

将“Remove Category URL”翻译成您的语言。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.1.6

  • Fixed: Minor bugs

1.1.4

  • Update Fix WPML

1.1.3

  • Update Fix

1.1.2

  • Update

1.1.1

  • Compatible with translate.wordpress.org

1.1

  • Fix Erros

1.0.2

  • Update Compatible with WPML.

0.1.1

  • Add uninstall.

0.1.0

  • Initial release.