htaccess'e asağıdaki kodu ekle hallolur sorun.
Alıntı
RewriteCond %{THE_REQUEST} \?(ref=.*)?\ HTTP [NC]
RewriteRule .? http://siteadresin.com%{REQUEST_URI}? [R=301,L]