xiaoyu9527
V2EX  ›  问与答

求助一个文件转换为 nginx

  •  
  •   xiaoyu9527 · Dec 13, 2016 · 1711 views
    This topic created in 3465 days ago, the information mentioned may be changed or developed.

    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 replies    2016-12-13 14:43:52 +08:00
    xiaoyu9527
        1
    xiaoyu9527  
    OP
       Dec 13, 2016
    htacess 转换为 nginx
    xiaoyu9527
        2
    xiaoyu9527  
    OP
       Dec 13, 2016
    这个好难
    Zzzzzzzzz
        4
    Zzzzzzzzz  
       Dec 13, 2016
    try_files 到 index.php 就好了, 不用 rewrite
    em998
        5
    em998  
       Dec 13, 2016
    antlr
    xiaoyu9527
        6
    xiaoyu9527  
    OP
       Dec 13, 2016
    @Zzzzzzzzz 我看不懂呀
    @FifiLyu 在线转换不行
    @wancaibida 我看不懂呀
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3413 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 231ms · UTC 11:43 · PVG 19:43 · LAX 04:43 · JFK 07:43
    ♥ Do have faith in what you're doing.