i am using nginx for magento. i like to know how to rewrite .htaccess for nginx. Help highly appeciated.
Nginx doesn't support .htaccess so you will need to convert any and all .htaccess rules to Nginx compatible format and insert it into your Nginx configuration.
I can see a few converter available with just a simple Google search:-