Apache to Nginx Directory Rewrite
- by Robin
i am shifting my webapp to nginx and i have problems to get my htaccess working
In Apache I have this :
RewriteRule images/([0-9]+)x([0-9]+)/([0-9]+)x([0-9]+)/(.+)$ images/image.php?width=$1&height=$2&cropratio=$3:$4&image=/$5 [L,QSA]
I already tried this from a converter but with no success :
rewrite /images/([0-9]+)x([0-9]+)/([0-9]+)x([0-9]+)/(.+)$ /images/image.php?width=$1&height=$2&cropratio=$3:$4&image=/$5 break;
Would be nice if somebody could point me in the right direction.
Thank you :)