V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jige
V2EX  ›  程序员

求助求助 nginx 伪静态规则转换成 apache 我搞不定了。 大神们帮帮忙 下边是代码

  •  
  •   jige · Apr 15, 2019 · 1469 views
    This topic created in 2580 days ago, the information mentioned may be changed or developed.
    location / {
    rewrite ^/(/)?$ /web/index.php?c=account&a=welcome;
    rewrite /([a-z]+).html /web/index.php?c=account&a=welcome&do=$1;
    rewrite /([a-z]+)/id/(\d+).html /web/index.php?c=account&a=welcome&do=$1&id=$2;
    }
    1 replies    2019-04-15 15:59:28 +08:00
    FreshUncle
        1
    FreshUncle  
       Apr 15, 2019
    ##rewrite apache create tool.apizl.com

    RewriteRule '^/(/)?$$' /web/index.php?c=account&a=welcome;
    [L]
    RewriteRule '/([a-z]+).html$' /web/index.php?c=account&a=welcome&do=$1;
    [L]
    RewriteRule '/([a-z]+)/id/(\d+).html$' /web/index.php?c=account&a=welcome&do=$1&id=$2;
    [L]
    参考网站 http://tool.apizl.com/tools/rewriteTools.html
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5888 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 74ms · UTC 06:14 · PVG 14:14 · LAX 23:14 · JFK 02:14
    ♥ Do have faith in what you're doing.