Tuesday 17 July 2012

Protect Site from Negative SEO Redirects


I’d an accidents where someone was redirecting couple of banned domain names to my site (talk negative search engine optimization) and so i designed a narrow your search of those bad domain names and blocked them from pointing to my server however the guy added couple of more domain names and so i needed a far more practical solution after research and check out and error I emerged using the following code that you ought to place in your .htaccess file.
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule (.*) http://www.mydomain.com/$1 [R=301,L]

RewriteEngine on
RewriteCond %{HTTP_HOST} !=www.mydomain.com
RewriteRule .* http://www.google.com [R=301,L]
Part one from the code redirects non world wide web to world wide web then your second one filters any traffic originating from any domain apart from yours to google.com or change google.com holiday to a domain you would like and send garbage visitors to it. This provides some type of protection layer to among the techniques utilized by negative Search engine optimization.

No comments:

Post a Comment

Twitter Bird Gadget