V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
baodaren8
V2EX  ›  问与答

网站想从 DZ 换博客程序,求问这种地址怎么跳转

  •  
  •   baodaren8 · 2018-12-31 16:43:33 +08:00 · 1019 次点击
    这是一个创建于 1948 天前的主题,其中的信息可能已经有所发展或是发生改变。

    做了一两年了,现在 IP 稳定起来了,但 DZ 程序自己不会调,经常会出现程序错误。
    为了稳定,想换一个新的程序,可现在有一个需要解决的问题。
    那就是怎么保证 301 能跳转过来。

    DZ 的伪静态地起是 域名 /thread-1029-1-1.html 这样的。
    换了程序后,应该是 域名 /1029.html。
    在 301 跳转上要怎么写呢?

    baiduer123
        1
    baiduer123  
       2018-12-31 16:47:08 +08:00   ❤️ 1
    你都能跨平台自己转换数据了,这种简单的 301 还不会??
    chinvo
        2
    chinvo  
       2018-12-31 16:47:34 +08:00   ❤️ 2
    正则匹配 thread id,然后 rewrite
    baodaren8
        3
    baodaren8  
    OP
       2018-12-31 16:59:26 +08:00
    @baiduer123 老兄,我是手动转换……一篇 一篇 的复制,粘贴阿。

    @chinvo 求联系方式,怎么写。
    chinvo
        4
    chinvo  
       2018-12-31 17:03:10 +08:00
    baodaren8
        5
    baodaren8  
    OP
       2018-12-31 17:05:39 +08:00
    @chinvo 给的域名正在打开中……还有个问题,同一个域名,能写两套伪静态规则吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   974 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 23:10 · PVG 07:10 · LAX 16:10 · JFK 19:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.