Anyone know what I'd write in an .htaccess file in order to redirect requests for two parked domains, abc.com and xyz.com to 123.com, which is the "real" site?
Thanks,
Julian
Thanks,
Julian
if (substr($_SERVER['HTTP_HOST'],0,7)=="www.abc") { header("Location: http://www.123.com"); }
if (substr($_SERVER['HTTP_HOST'],0,7)=="www.abc") { header("Location: http://www.123.com"); }
if (substr($_SERVER['HTTP_HOST'],0,3)=="abc") { header("Location: http://www.123.com"); }
if (substr($_SERVER['HTTP_HOST'],0,7) == "www.abc" || substr($_SERVER['HTTP_HOST'],0,3)=="abc") {
header("Location: http://www.123.com");
}
Comment