How to convert Lighttpd rewrite to NGinx rewrite

Hi All,

I have a problem in convert Lighttpd rules to Nginx rewrite

This is my Lighttpd rules

“^/pthumb/([^/]+)/(.+)$” => “/pthumb/index.php?$1&f=$2”

And this is Nginx Rewrite converted from above Lighttpd rules

rewrite ^/pthumb/([^/]+)/(.+)$ /pthumb/index.php?$1&f=$2

But is not work.It very hard for me.

Please help me convert this rules.

I don’t believe you need to escape your backslashes like you’re doing,
though I’m not sure that’s you actual problem.

It would help if you gave some more detail about what “not working”
looks like. How are you testing? What do you see? Etc etc.

Cheers,
Jonathan

Jonathan M. // Oxford, London, UK
http://www.jpluscplusm.com/contact.html