xiaoyu9527
V2EX  ›  问与答

求助一个文件转换为 nginx

  •  
  •   xiaoyu9527 · Dec 13, 2016 · 2015 views
    This topic created in 3616 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
    xiaoyu9527
    OP
    Dec 13, 2016
    1
    htacess 转换为 nginx
    xiaoyu9527
    xiaoyu9527
    OP
    Dec 13, 2016
    2
    这个好难
    Zzzzzzzzz
    Zzzzzzzzz
    Dec 13, 2016
    4
    try_files 到 index.php 就好了, 不用 rewrite
    em998
    em998
    Dec 13, 2016
    5
    antlr
    xiaoyu9527
    xiaoyu9527
    OP
    Dec 13, 2016
    6
    @Zzzzzzzzz 我看不懂呀
    @FifiLyu 在线转换不行
    @wancaibida 我看不懂呀
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   794 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 18:57 · PVG 02:57 · LAX 10:57 · JFK 13:57
    ♥ Do have faith in what you're doing.