Online tools to translate Apache .htaccess to Nginx rewrite tools include:
- http://winginx.com/htaccess
- http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
Note that these tools will convert to equivalent rewrite expressions using if statements, but they should be converted to try_files. See:
- http://wiki.nginx.org/NginxHttpCoreModule#try_files