David's Blog

Stuff I feel that is interesting

Not my Domain Name Pointing to my Website

I have an interesting scenario. A domain name which I do not own is pointing to my website. The owner of the domain will not take down the domain forwarding. The main reason this is a bad deal is search engines. When search results include my website, the other domain shows up in the results. This implies that my website is associated with their website. Not so as their is no association.

So I believe I found a solution. .htaccess which is used for site-access issues. I create an .htaccess rule to redirect the unwanted url to an error page on my website. I hope that the search engines will crawl my pages -soon- and push the unwanted search results so far down that the search results will appear irrelevant.

RewriteCond %{HTTP_HOST} ^www.bad-doamin.com$ [NC]
RewriteRule ^$ http://www.dukesnuz.com/403.shtml [L,R=301]

RewriteCond %{HTTP_HOST} ^bad-doamin.com$ [NC]
RewriteRule ^$ http://www.dukesnuz.com/403.shtml [L,R=301]

Posted: February 04, 2016