title: Rewrite old image url with nginx
body: <p>I have a single image that I renamed and need to redirect from the old image url to the new one my server uses <code>nginx</code>, I'm not having much success with the following rewrite:  </p>
  
  <pre><code>rewrite ^/assets/avatar/avatar.png /assets/avatar/newavatar.png permanent;
  </code></pre>
  
  <p>Does someone know what is wrong?</p>