I can't figure out how to make users visiting my website using links like: mysite.com/?ref=XXXXXXX see the homepage instead of a completely blank page. I tried using htaccess but I can't figure out how to do it.This is how my .htaccess file looks like:Options +FollowSymLinks -MultiViewsRewriteEngine OnRewriteCond %{QUERY_STRING} ^ref=(.+)$ [NC]RewriteRule ^index.php http://mysite.com/? [L,R=301]
Redirect URL with query string to homepage
htaccess;redirects
Try adding this to a .htaccess file in your document root:Options +FollowSymLinks -MultiViewsRewriteEngine OnRewriteCond %{QUERY_STRING} ^ref=(.+)$ [NC]RewriteRule ^index.php$ /? [L,R=301,NC]Make sure you have the mod_rewrite module installed.