If a person comes to my site X1 from site X2 then it should redirect to site X3.. if a person directly open the site X1 it should not redirect to site X3. you can use any programming to do this..
WHERE X1 ,X2 and X3 are the three different sites..
If a person comes to my site X1 from site X2 then it should redirect to site X3.. if a person directly open the site X1 it should not redirect to site X3. you can use any programming to do this..
WHERE X1 ,X2 and X3 are the three different sites..
You can check the referer
var ref = document.referrer;
if (ref.match(/^http?:\/\/([^\/]+\.)?SITEX2\.com(\/|$)/i)) {
window.location.replace("http://SITEX3.com");
}