ins
V2EX  ›  问与答

伪静态求教

  •  
  •   ins · Oct 3, 2016 · 2300 views
    This topic created in 3536 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   ·   3406 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 43ms · UTC 12:09 · PVG 20:09 · LAX 05:09 · JFK 08:09
    ♥ Do have faith in what you're doing.