开发者

Custom permalink in WP

How to archive the URL rew开发者_运维知识库rite from example.com/?special=25 to example.com/special/25.


Check out the WordPress WP Rewrite class. The examples towards the bottom look like they'd get what you are trying to achieve. Sadly not used this before so can't provide an example.


Without any more context to the question, it's a little difficult to say; however, based on the URL scheme that you've provided, 'special' appears to be a category, custom post type, or some other taxonomy.

If that's the case, then you can use a custom permalink setting set to: /%postname%/ and that would take care of it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜