Can’t wait for Google SEO to kick in? Highjack another site’s code and make it happen

Can’t wait for Google SEO to kick in? Highjack another site’s code and make it happen

I have 2 clients now that used to be one. The preschool is new and the community centre it is located in also is my client. So – all the major listing sites like yellow pages and the local provincial (state) sites come up 1st and second in a google search. Those listing say deerruncalgary.com as the website for both the centre and the preschool. So – with some simple php, here is how to make the preschool forward to the preschool site when the centre’s website is clicked on from yellow pages and the like … In the index.php for the centre’s wordpress – add this


if ($url = parse_url($_SERVER['HTTP_REFERER'])) {

//printf($url);

$host = str_replace("www.", "",$url['host']);
$path = $url['path'];

if ($url['host'] = "yellowpages.ca" && stripos($url['path'],"preschooler-playhouse") !== false) {
header("Location: http://preschoolerplayhouse.com/");
exit;
}
if ($url['host'] = "informalberta.ca" && stripos($url['query'],"servicequeryid=3645") !== false) {
// http://www.informalberta.ca/public/service/serviceProfileStyled.do?serviceQueryId=3645
header("Location: http://preschoolerplayhouse.com/");
exit;

}
}

 

ELB Solutions.com Inc.
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.