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

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

  •  
  •   xiaoyanbot · Sep 12, 2017 · 1112 views
    This topic created in 3160 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   ·   5354 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 07:54 · PVG 15:54 · LAX 00:54 · JFK 03:54
    ♥ Do have faith in what you're doing.