ddantes
asked on
.htaccess not performing
One of my domains (mauivacationrental.com) is redirected to another domain (www.mauitradewinds.com) using .htaccess, and this is working. However, before the redirection is executed, there is code to block certain referrers. One of the referrers is still accessing the site and being redirected. That referrer is:
http://best-seo-offer.com/try.php?u=http://mauivacationrental.com
Please advise how to block this referrer.htaccess.txt
http://best-seo-offer.com/try.php?u=http://mauivacationrental.com
Please advise how to block this referrer.htaccess.txt
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
As far as I know you just need it once.
ASKER
Hello Again: I'm still getting visitors from the blocked domain. The referrer is:
http://best-seo-offer.com/try.php?u=http://mauivacationrental.com
Per your advice, the following code is included in .htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_REFERER} best-seo-offer\.com
Since there are several blocked domains, perhaps each line of code should have "[NC,OR]", except the last referrer in the list?
http://best-seo-offer.com/try.php?u=http://mauivacationrental.com
Per your advice, the following code is included in .htaccess:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_REFERER} best-seo-offer\.com
Since there are several blocked domains, perhaps each line of code should have "[NC,OR]", except the last referrer in the list?
I don't know about the "[NC,OR]" but that seems to be right. Also... double check your list. The list you posted has 'best-seo-solution\.com', not 'best-seo-offer\.com'.
ASKER
Thanks Dave. The blocked referrer list has both versions of best-seo, and I should have posted the one which relates to the most recent visit. I'll see if the "[NC,OR]" will put a stop to these.
ASKER