Hey guys,
The product info URL (Manufacturer Link) was working great, I make it link to technical PDF's on our products and when clicked it would open a URL which looked something like this: http://www.website.com/technical/info.pdf
After installing this piece of code for GeoIP Redirect in the first part of the index.php
PHP Code:
<?php
/**
* Case Study - GeoIP Redirection
*
* @version $Id$
* @package geoip
* @copyright © 2006 Lampix.net
* @author Dragan Dinic
*/
require_once("geoip.inc");
$gi = geoip_open("GeoIP.dat",GEOIP_STANDARD);
$country_code = geoip_country_code_by_addr($gi, $_SERVER['REMOTE_ADDR']);
geoip_close($gi);
if($country_code == 'GB')
{
header('Location: http://www.website.com/uk/');
}
?>
The Product info URL now opens into the following and will not display the page: http://www.website.com/index.php?mai...cal%2Finfo.pdf
Really not sure what to do as I need the GeoIP as much as i do the Product Info URL
Thanks for any help