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

Rewrite 伪静态规则 导致 no input files 错误的原理

  •  
  •   xiaoyanbot · Sep 12, 2017 · 1101 views
    This topic created in 3149 days ago, the information mentioned may be changed or developed.

    RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

    规则在 apache fastcgi 模式下会导致 No input file specified.

    修改成

    RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]

    为什么要改成第二个,第二个的原理是啥意思?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3575 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 11:49 · PVG 19:49 · LAX 04:49 · JFK 07:49
    ♥ Do have faith in what you're doing.