title: How to remove a subdirectory from the middle of a url in nginx?
body: <p>I have an issue where I am trying to use nginx to remove sub directory from the middle of a URL.</p>
  
  <p>I have:
  <code>https://example.com/pub/static/version1532296276/frontend/Alothemes/default/ar_KW/requirejs/require.min.js</code></p>
  
  <p>I want to rewrite it to:
  <code>https://example.com/pub/static/frontend/Alothemes/default/ar_KW/requirejs/require.min.js</code></p>
  
  <p>How would I use nginx url rewriting to do this?</p>