title: htaccess ignore part of query string
body: <p>It is possible to write a .htaccess rule to <strong>ignore</strong> part of the query string but still keep it in the url (without redirection)?</p>
  
  <p>i need a way to ignore query string(s) starts with the <strong>utm_</strong> like they are absent (invisible to the backend scripts) but still present in the browser URL because the query string will be captured by the JavaScript analytics scripts (thats why solutions with the redirection unacceptable).</p>
  
  <p>lets say i have an url without query string: <a href="https://example.com/bla/hello" rel="nofollow noreferrer">https://example.com/bla/hello</a></p>
  
  <p>or with query string: <a href="https://example.com/anything?hello=world" rel="nofollow noreferrer">https://example.com/anything?hello=world</a></p>
  
  <p>then i need to add a query string part <strong>utm_source=123</strong> which could be positioned anywhere among the other query string elements</p>
  
  <p>some pages of the site stops working or starts behaving different when im adding a query string to the url for example <a href="https://example.com/?utm_source=123" rel="nofollow noreferrer">https://example.com/?utm_source=123</a> throws 404</p>
  
  <p>if it is possible, could you help me with the rules ?</p>