When using Nginx server the rewrite commands are using in the virtual host file not in the .htaccess. But the commands used are similar to that used in .htaccess.