title: Nginx redirect if url contain "/?&"
body: <p>I need help redirect if url only contain "/?&amp;"</p>
  
  <p>Example:</p>
  
  <pre><code>https://example.com/?&amp;
  </code></pre>
  
  <p>redirect to:</p>
  
  <pre><code>https://example.com/
  </code></pre>
  
  <p>already try with this code but not working.</p>
  
  <pre><code>location /?&amp; {
    return 301 http://$server_name;
  }
  </code></pre>