V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
buobuk
V2EX  ›  程序员

研究一个wordpress下的nginx重写规则

  •  
  •   buobuk · 2013-06-26 19:34:09 +08:00 · 2658 次点击
    这是一个创建于 3928 天前的主题,其中的信息可能已经有所发展或是发生改变。
    前提: 文章开启了分页+nginx

    目前使用固定链接是 xxx.com/post_id/ 重写以后 分页的链接为 xxx.com/posd_id/页码

    现在的想法是,链接想改为xxx.com/post_id.html 结果分页链接为 xxx.com/posd_id.html/页码

    这样重写比不写还死啊,有没有人研究过.nginx下怎么写,可以把分页链接写为 xxx.om/posd_id_分页.html
    1 条回复    1970-01-01 08:00:00 +08:00
    Kvm
        1
    Kvm  
       2013-06-26 20:22:26 +08:00
    nginx规则没问题
    wordpress的内部链接要重新弄过
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1388 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:36 · PVG 01:36 · LAX 10:36 · JFK 13:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.