Php 为什么Wordpress不删除类别中的[category]';s网址
众所周知,WordPress分类页面中有一个前缀[category],有许多插件可以删除该前缀。WordPress不允许类别的前缀为空(它们在名称前插入category/) 但我想知道为什么WordPress不自己删除前缀?有什么困难吗? 删除前缀是否有重要影响?我的英语很差,我希望我已经讲清楚了 我不想使用Yoast推荐的以下插件Php 为什么Wordpress不删除类别中的[category]';s网址,php,wordpress,Php,Wordpress,众所周知,WordPress分类页面中有一个前缀[category],有许多插件可以删除该前缀。WordPress不允许类别的前缀为空(它们在名称前插入category/) 但我想知道为什么WordPress不自己删除前缀?有什么困难吗? 删除前缀是否有重要影响?我的英语很差,我希望我已经讲清楚了 我不想使用Yoast推荐的以下插件 The Top Level Categories plugin allows you to remove the prefix before the URL to
The Top Level Categories plugin allows you to remove the prefix before the URL to your category page. For example, instead of http://example.com/category/work, you can use http://example.com/work for the address of "work" category. WordPress doesn't allow you to have a blank prefix for categories (they insert category/ before the name), this plugin works around that restriction.
您可以从管理面板中更改这些设置的永久链接设置。 转到设置/permalinks并添加类别库“.”,以便从url中删除“/category”。
查看屏幕截图。这个问题似乎离题了,因为它不是一个编程问题。它更适合它的工作,但当我打开类别页面时,它显示404错误。我认为重写规则是不正确的,如何为该更改重写正确的写入规则?为此,您需要对.htaccess文件授予权限