: Redirect URL with query string to homepage 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 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 -MultiViews
RewriteEngine On
RewriteCond %{QUERY_STRING} ^ref=(.+)$ [NC]
RewriteRule ^index.php mysite.com/? [L,R=301]
More posts by @Cooney921
1 Comments
Sorted by latest first Latest Oldest Best
Try adding this to a .htaccess file in your document root:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteCond %{QUERY_STRING} ^ref=(.+)$ [NC]
RewriteRule ^index.php$ /? [L,R=301,NC]
Make sure you have the mod_rewrite module installed.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.