rewrite rules - add_rewrite_rule not working for blog category page

add_rewrite_rule('^bloggames(a-z|z-a|most-recent|most-viewed)(page([0-9]{1,}))?.html$', 'index.php?b

add_rewrite_rule('^blog/games/(a-z|z-a|most-recent|most-viewed)(/page/([0-9]{1,}))?\.html$', 'index.php?blog_category=game-guides&index_sort=$matches[1]&paged=$matches[3]', 'top');

after adding above rule I found 404 for below URL

http://localhost/blog/games/most-recent/page/2.html and http://localhost/blog/games/most-recent.html

also, I can find my rule in get_option( 'rewrite_rules' ). games is blog category

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

相关推荐

  • rewrite rules - add_rewrite_rule not working for blog category page

    add_rewrite_rule('^bloggames(a-z|z-a|most-recent|most-viewed)(page([0-9]{1,}))?.html$', 'index.php?b

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

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

关注微信