There is a radical way is to capture, filter visitors from one website’s url then refer them to another web page or another website.
Thus, in our situation, all these visitors will be redirected to a page chosen that will allow us to explain the situation.
Typically, it is needed if you have migrated from a free blog or website, where 301 redirection is not possible in the old website and you want to redirect all the traffic to your new website.
---
Legal disclaimer: Do not attempt it to do for standard third party websites to your website. If the webmaster lodges a complain against you, you will be in trouble and also, if Google is notified, your website will be black listed; that is, your website will be erased from Google search result.
We are no way responsible for any illegal activities using the code(s). The code (s) are given herein with good faith that the end user will only use for redirecting own websites, webpages etc.
This system redirection is done with a few lines to add to your <span style="background-color: #e9eef3; font-color: #000000 font-size; font-family: Arial,Tahoma,Verdana; text-shadow: #fff 1px 1px;">.htaccess</span>:
Options +FollowSymLinksRewriteEngine onRewriteCond %{HTTP_REFERER} <span style="color: #ff0000;">sourceurl</span> <span style="color: #ff0000;">.com</span>/RewriteRule ^$ <span style="color: #ff0000;">www.newurl.com</span> [R=301,L]
Specifically, <span style="background-color: #e9eef3; font-color: #000000 font-size; font-family: Arial,Tahoma,Verdana; text-shadow: #fff 1px 1px;">RewriteCond% {HTTP_REFERER} sourceurl</span>detects traffic from different websites. If traffic comes from <span style="color: #ff0000;">sourceurl</span> then the second command is enabled.
The following command <span style="background-color: #e9eef3; font-color: #000000 font-size; font-family: Arial,Tahoma,Verdana; text-shadow: #fff 1px 1px;">RewriteRule ^ $ [R = 301, L]</span> will redirect traffic (and visitors) to your new site if it comes from old site (because the first condition is true) .
It is also possible to redirect to a specific page, simply change the address redirected:
RewriteRule ^ $ <span style="color: #ff0000;">yoururl</span> / <span style="color: #ff0000;">yourpage.html</span> [R = 301, L]
