![](/img/trans.png)
[英]How to get attachment url if match with tag (slug/name) (wordpress)
[英]How to rewrite the url to deal with uniqueness of slug name in Wordpress?
目前,我的网址如下所示:
http://www.example.com/cat/subcat1-cat/subcat2-cat
如何使它看起来像这样:
http://www.example.com/cat/subcat1/subcat2
基本上,在这种情况下,我想删除-cat
。 我在Wordpress中找不到解决此烦人问题的方法,所以我认为.htaccess
将是解决方案?
我认为您应该尝试在wordpress仪表板中编辑类别并更改每个类别的别名。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.