How can I use an .htaccess file in Nginx?
<p>I am currently migrating my website from Apache to <code>nginx</code>, but my <code>.htaccess</code> file is not working. My website is inside the <code>/usr/share/nginx/html/mywebsite</code> folder. How can I use <code>.htaccess</code> in my <code>nginx</code> server?</p>

<p>This is my <code>.htaccess</code> file:</p>

<pre><code>RewriteEngine on
RewriteRule video/watch/([a-zA-Z0-9_@$*-]+)/?$ "videos-single.php?id=$1" [NC]
</code></pre>