• 请不要在回答技术问题时复制粘贴 AI 生成的内容
jige
V2EX  ›  程序员

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

  •  
  •   jige · Apr 15, 2019 · 1490 views
    This topic created in 2589 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   ·   3011 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:21 · PVG 08:21 · LAX 17:21 · JFK 20:21
    ♥ Do have faith in what you're doing.