V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
simplove
V2EX  ›  问与答

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

  •  
  •   simplove · 2017-08-07 02:01:31 +08:00 · 1226 次点击
    这是一个创建于 2489 天前的主题,其中的信息可能已经有所发展或是发生改变。
    <ifmodule mod_rewrite.c=""> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L] </ifmodule>

    谢谢

    3 条回复    2017-08-07 08:49:53 +08:00
    wxg4net
        1
    wxg4net  
       2017-08-07 07:07:01 +08:00
    基本等于 try_files $uri $uri/ index.php/$uri?$args;
    torbrowserbridge
        2
    torbrowserbridge  
       2017-08-07 08:43:44 +08:00
    @wxg4net 难道不是 try_files $uri $uri/ index.php?/$uri?args;
    xiqingongzi
        3
    xiqingongzi  
       2017-08-07 08:49:53 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5119 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 07:01 · PVG 15:01 · LAX 00:01 · JFK 03:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.