title: How do I create an Nginx rewrite to enforce lowercase urls?
body: <p>I've been given a request from a client to ensure all visits to their site are to lowercase URLs following an external SEO audit.</p>
  <p>For example they'd like <a href="http://www.example.com/How-We-Help" rel="nofollow noreferrer">www.example.com/How-We-Help</a> to redirect with a 301 code to <a href="http://www.example.com/how-we-help" rel="nofollow noreferrer">www.example.com/how-we-help</a></p>
  <p>Their site is hosted on WPEngine - I know this would be a simple thing to do using htaccess rules but htaccess has been deprecated on WPEngine for a little while now.</p>
  <p>Example htaccess rule</p>
  <pre><code>RewriteCond %{REQUEST_URI} [A-Z]
  RewriteRule . ${lc:%{REQUEST_URI}} [R=301,L]
  </code></pre>
  <p>I've read that it is possible to create a similar rule with Nginx rewrites but my knowledge is limited and WPEngine support weren't much help.</p>
  <p>Is a way to do this using Nginx rewrites? If so, what rules need to be in place?</p>