ins
V2EX  ›  问与答

伪静态求教

  •  
  •   ins · Oct 3, 2016 · 2280 views
    This topic created in 3520 days ago, the information mentioned may be changed or developed.

    下面这个是 nginx 的伪静态: location / { try_files $uri $uri/ /index.php; } location ~* /app/(views|cache)/(.*).php$ { deny all; }

    用以下的方式怎么写,我写的不好,能否请大神补全,感激。 他的要求是 rewrite 规则仅支持一下指令: if 、 rewrite 、 return 、 break 、 set 、 try_files.

    我写的是这样: rewrite try_files $uri $uri/ /index.php; (恳请大神帮忙补全..感激)

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   837 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 21:12 · PVG 05:12 · LAX 14:12 · JFK 17:12
    ♥ Do have faith in what you're doing.