如何在wordpress的url上用其他帖子名称替换自定义帖子类型slug?

时间:2016-04-06 18:46:29

标签: mod-rewrite url-rewriting custom-post-type

我有一个在下面给出的网址 例如:(工作) www.domain.com/post-type/postname www.domain.com/offer/get-free-20-rs

现在我想替换那个网址 像这样 例如: - (不工作) www.domain.com/brandname/postname  www.domain.com/paytm/get-free-20-rs

当我用第二个网址(www.domain.com/paytm/get-free-20-rs)替换第一个网址(www.domain.com/offer/get-free-20-rs)时,它会转到404错误页面。

基本上post_type替换为其他帖子类型名称。

但我得到了这个Url,但问题是404错误页面。

那么如何解决这个问题。

由于

0 个答案:

没有答案
相关问题