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

求助一个文件转换为 nginx

  •  
  •   xiaoyu9527 · 2016-12-13 11:32:57 +08:00 · 1309 次点击
    这是一个创建于 2728 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Turn on URL rewriting

    RewriteEngine On

    Installation directory

    RewriteBase /plugins/support

    Protect hidden files from being viewed

    <Files .*> Order Deny,Allow Deny From All </files>

    Protect application and system files from being viewed

    RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

    Allow any files or directories that exist to be displayed directly

    RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d

    Rewrite all other URLs to index.php/URL

    RewriteRule .* index.php/$0 [PT]

    求助一下求助一下

    6 条回复    2016-12-13 14:43:52 +08:00
    xiaoyu9527
        1
    xiaoyu9527  
    OP
       2016-12-13 11:33:14 +08:00
    htacess 转换为 nginx
    xiaoyu9527
        2
    xiaoyu9527  
    OP
       2016-12-13 11:36:50 +08:00
    这个好难
    Zzzzzzzzz
        4
    Zzzzzzzzz  
       2016-12-13 11:41:58 +08:00
    try_files 到 index.php 就好了, 不用 rewrite
    wancaibida
        5
    wancaibida  
       2016-12-13 13:29:31 +08:00
    antlr
    xiaoyu9527
        6
    xiaoyu9527  
    OP
       2016-12-13 14:43:52 +08:00
    @Zzzzzzzzz 我看不懂呀
    @FifiLyu 在线转换不行
    @wancaibida 我看不懂呀
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5634 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 346ms · UTC 01:54 · PVG 09:54 · LAX 18:54 · JFK 21:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.