minify
minify copied to clipboard
Rewrite rules for Nginx
Any advice about the rewrite rules for nginx?
Hi @midorinet
I am using the following with nginx:
location /min/ {
rewrite ^/min/([bfg]=.+) /min/index.php?$1;
}
Hi @tomcastleman
I can get it running by using rule below
rewrite ^/min/([a-z]=.*) /min/index.php?$1 last;
Hi I tried the above 2 configuration in Nginx. But its not working I am getting 404 Not Found in browser but in Apache its working fine. I do not know whether the issue in NGINX or PHP-FPM.
My application is on Yii and compressing ac-clientscript-minify extension
Please help to solve this issue