simplove
V2EX  ›  问与答

有没有人帮忙转下 htaccess 在 nginx 下使用

  •  
  •   simplove · Aug 7, 2017 · 1955 views
    This topic created in 3401 days ago, the information mentioned may be changed or developed.
    <ifmodule mod_rewrite.c=""> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] </ifmodule>

    谢谢

    3 replies  •  2017-08-07 08:49:53 +08:00
    wxg4net
    wxg4net
    Aug 7, 2017
    1
    基本等于 try_files $uri $uri/ index.php/$uri?$args;
    torbrowserbridge
    torbrowserbridge
    Aug 7, 2017
    2
    @wxg4net 难道不是 try_files $uri $uri/ index.php?/$uri?args;
    xiqingongzi
    xiqingongzi
    Aug 7, 2017
    3
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   884 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:47 · PVG 04:47 · LAX 12:47 · JFK 15:47
    ♥ Do have faith in what you're doing.