title: Remove get parameter from url
body: <p>i have friendly urls enabled on my site (its a custom cms) but sometimes when i click on the link from an outer link, it displays the "perf" text repeated with ?perf= after the first parameter of the url. </p>
  
  <p>for example if my normal url is </p>
  
  <p><a href="https://www.example.com/friendlyurl" rel="nofollow noreferrer">https://www.example.com/friendlyurl</a></p>
  
  <p>it displays </p>
  
  <p><a href="https://www.example.com/friendlyurl?perf=friendlyurl" rel="nofollow noreferrer">https://www.example.com/friendlyurl?perf=friendlyurl</a></p>
  
  <p>here is my htaccess:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{HTTP_HOST} ^example.com [NC]
  RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301,NC]
  
  RewriteEngine On
  RewriteCond %{HTTPS} off
  RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  RewriteEngine on
  
  RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?perf=$1
  RewriteRule ^(.*)HOME(.*)$ /$1$2 [L,R=301] 
  </code></pre>
  
  <p>I need to remove the ?perf=friendlyurl section, i have tried several ways changing the htaccess with no luck.</p>
  
  <p>Any help is appreciated.</p>