title: Correct NGINX rewrite rule for static files
body: <p>I want to create a NGINX rewrite rule for static CSS and JavaScript files.</p>
  
  <p>E.G Browser request: <code>www.website.com/staticfiles/generatedhashhere/css/file.css</code></p>
  
  <p>Nginx shoold look to: <code>/staticfiles/css/file.css</code></p>
  
  <p>I want to exclude one subdirectory path.</p>
  
  <p>Is it possible to write rule with NGINX try_files? </p>
  
  <p>Thanks for your help!</p>