xiaoyanbot
V2EX  ›  问与答

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

  •  
  •   xiaoyanbot · Sep 12, 2017 · 1130 views
    This topic created in 3165 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   ·   5774 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 06:37 · PVG 14:37 · LAX 23:37 · JFK 02:37
    ♥ Do have faith in what you're doing.