title: rewriting urls for static js and css files using nginx server
body: <p>i would like to rewrite js and css files using nginx</p>
  
  <p>i have this urls pattern</p>
  
  <p>css :
  <code>http://myhost.com/css/min/css_home.1330004285.css</code> </p>
  
  <p>js :
  <code>http://myhost.com/js/min/js_home.1330004285.js</code></p>
  
  <p>for the css files have to redirect to
  <code>http://myhost.com/css/min/css_home.css</code> and the same way for the js files</p>
  
  <p>i tried to resolve this by using thi solution but i doesn't work , it showing me an error when restarting nginx server</p>
  
  <pre><code>location ~* \.(css|js) {
   rewrite /(.*)\.[\d]{10}\.(css|js) $1.$2 last;
  }
  </code></pre>