Remove Query String from Rootdomain <p>I know with a simple redirect one (Sub-)Domain or Folder to another i can get rid of a string like this</p> <pre><code>RewriteEngine On RewriteRule (.*) http://www.domain.tld/? [R=301,L] </code></pre> <p>I know how to get rid of it when it is a simple file too.</p> <p>But when it comes to the Rootdomain itself (<a href="http://domain.tld/?Stringwhatsoever" rel="nofollow">http://domain.tld/?Stringwhatsoever</a>), i am at a loss here. My last try used a modified version of a redirect I used to redirect files and folders around and that worked pretty nicely and also removed the query, but it ended up in a redirection error.</p> <pre><code>RewriteRule ^ http://domain.tld/? [L,NC,R=301] </code></pre> <p>So i have no clue how to get rid of Query Strings at urls without breaking it.</p>