im closing down my old shop livvylou.co.uk, as i have merged my products on my new site livvylougifts.co.uk
i have placed the following redirect on my old site
Code:
Redirect 301 / http://www.livvylougifts.co.uk/index.php?main_page=index&cPath=62
(i haven't got a like for like so i am simply diverting all traffic from the old to a category which is relevant to the previous content.)
i would like to set up a notice that welcomes old traffic to the new page, in my understanding a 301 redirect should includes the referrer (in this case my old site)
so i have used the code
Code:
<!-- old livvylou site welcome -->
<?php
$ref=$_SERVER['HTTP_REFERER'];
$domain_search = "livvylou.co.uk";
$ref_site = parse_url($ref, PHP_URL_HOST);
if (preg_match("/$domain_search/i" , $ref_site))
{
echo "Exciting news!!!! Livvylou.co.uk and Livvylou Gifts have now merged to make large convenient place for you to find all your children's goodies. We have directede you to our baby and child gifts but we also have lots more categories now for personalised giftware. Thanks for stopping by!";
}
?>
<!-- old livvylou site welcome -->
but this isnt working, are there any 301 gurus who can help out please? its quite urgent :)
thanks in advance
Bookmarks