permalinks - Read GET parameters in APACHE Mod Rewrite rules for WordPress categories in Posts

I'm a self-taught programmer with a very little experience in WordPress programming. I'm using a post permalin

I'm a self-taught programmer with a very little experience in WordPress programming. I'm using a post permalink structure in this way:

/

I want to have the possibility to optionally have URLs with two "parameters", "routes", "deepth-levels" like this:

/

With APACHE's mod_rewrite I know I can "convert" a URL like: .php?name=john-doe&color=light-blue in some like: /

But, in WordPress, how can I do this without messing all the other URLs and routing process-flow? My goal is read the GET params name and color in the functions.php file so I can make some code with that.

EDIT:

I think that a mod_rewrite rule for "converting" / accepting URLs like this /?name=john&color=light-blue in something like this / would do the trick! Using add_rewrite_url()

Thanks for reading.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745218253a4617124.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信