title: Conditional redirection with nginx, if the directory is available?
body: <p>Is there is a possibility than I can rewrite/ or redirect to different a URL when a certain folder exists via Nginx?</p>
  
  <p>For example:</p>
  
  <p>www.abc.com/feedback (normal URL)</p>
  
  <p>But when there is a certain directory exists, I want above URL to rewrite/redirect as follows:</p>
  
  <p>www.abc.com/**xyz/**feedback (conditional base in Nginx, if directory exists rewrite/redirect)</p>