V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
ins
V2EX  ›  问与答

伪静态求教

  •  
  •   ins · Oct 3, 2016 · 2239 views
    This topic created in 3499 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   ·   2368 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 01:41 · PVG 09:41 · LAX 18:41 · JFK 21:41
    ♥ Do have faith in what you're doing.