title: How can I redirect users with custom request (not folder) to root folder?
body: <p>I need to redirect a facebook ID link (<a href="https://example.com/?fbclid=some_gibberish_text" rel="nofollow noreferrer">https://example.com/?fbclid=some_gibberish_text</a>) to my root folder. I am using return 301 but gotten no result. Below is my configuration in nginx.conf:</p>
  
  <pre><code>location ^~ /?fbclid=(.*) {
      return 301 https://example.com;
  }
  </code></pre>
  
  <p>I am kind of new to Nginx. How do I achieve this?</p>
  
  <p>Thanks.</p>