Apache to Nginx Directory Rewrite

Posted by Robin on Server Fault See other posts from Server Fault or by Robin
Published on 2012-07-04T09:11:18Z Indexed on 2012/07/04 9:17 UTC
Read the original article Hit count: 208

Filed under:
|
|
|

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 :)

© Server Fault or respective owner

Related posts about apache2

Related posts about nginx