【问题标题】:nginx rewrite rulenginx重写规则
【发布时间】:2010-11-20 06:31:01
【问题描述】:

嗨,

鉴于以下 apache/mod_rewrite 规则取自服务器上 minify 目录中的 .htaccess:

RewriteRule ^([a-z]=.*) index.php?$1 [L,NE]

与 nginx 兼容的等价物是什么?我试过了:

重写 ^/minify/([a-z]=.*) minify/index.php?$1 break;

但这似乎不起作用。 有什么想法吗?

【问题讨论】:

    标签: mod-rewrite nginx


    【解决方案1】:

    我有这样的东西,它对我有用

    最后重写 ^/min/([a-z]=.*) /min/index.php?$1;

    【讨论】:

      【解决方案2】:

      尝试类似bbPress's code

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-03-04
        • 2013-08-05
        • 2013-10-12
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多