title: NGINX Redirect Loop for a single page
body: <p>I have an NGINX Webserver and I am trying to redirect the page 
  <br />    <code>www.example.com/newsletter</code> 
  <br />to 
  <br />    <code>www.example.com/blog/category/newsletter</code> </p>
  
  <p>but the redirect rule I have is matching both locations and causing a redirect loop. How can I make the rule ignore the /blog/category page while still redirecting the /newsletter page?</p>
  
  <p>The redirect rule that I am using is:<br />
  <code>rewrite ^/newsletter$ https://www.example.com/blog/category/newsletter permanent;</code></p>
  
  <p><br />
  I am not very good at regex and I am not even sure that is what I need to use to get the final page excluded from the redirect loop.</p>