I need to redirect visitors that typed .rar or .zip extension to my website Here the .htaccess code RewriteRule ^(.*)\.(zip|rar)$ http://www.somewebsite.com/1gb.rar [NC,L] How to convert it to nginx rewite rule?
http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ This is an excellent resource, and for most situations, it gives the correct code.