title: nginx - Redirect internal to path, if resource doesn't exists
body: <p>once i asked, if someone can check a rule for apache2: <a href="https://stackoverflow.com/questions/22300461/redirect-internal-to-path-if-resource-doesnt-exists">Redirect internal to path, if resource doesn&#39;t exists</a></p>
  
  <p>But now i need it for nginx.
  Can someone help me to rewrite the rule for nginx?</p>
  
  <p>I tried some converters, but they didn't help me :(</p>
  
  <pre><code>RewriteCond %{REQUEST_URI} ^/resources/img/tires [NC]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^resources/img/tires/(.*)$ reifen/imagematch/$1 [L]
  </code></pre>
  
  <p>Thanks guys!</p>