0
votes

HI,

Given the following apache/mod_rewrite rule taken from .htaccess within minify directory on the server:

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

what will be the nginx compatible equivalent of it? I have tried:

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

but that doesn't seem to work. Any ideas guys?

2

2 Answers

2
votes

I have something like this and it's working for me

rewrite ^/min/([a-z]=.*) /min/index.php?$1 last;
0
votes

Try something more like bbPress's code.