jasonc Posted September 17, 2009 Share Posted September 17, 2009 I have been trying to get my members using Java Browsers to be redirected using header('Location: http://www.example.com/'); but it does not work for some reason. i have them click a link say... www.site.com/?ref=1 which then takes them to the site related to 'ref' number but first updates my counters for hit stats. then the header('Location: http://www.example.com/'); takes them instantly to the page they wanted. but this only works in standard browsers like FireFox and IE how is this done using Java Browsers ? Link to comment https://forums.phpfreaks.com/topic/174565-headerlocation-httpwwwexamplecom-does-not-work-on-a-java-browser/ Share on other sites More sharing options...
Bricktop Posted September 17, 2009 Share Posted September 17, 2009 Hi jasonc, have a look at the header manual on php.net (http://www.php.net/manual/fr/function.header.php) there are some useful code examples when trying to redirect different browser types. In particular, look for the function posted by stevenwebster - that looks like it should do what you need. Hope this helps. Link to comment https://forums.phpfreaks.com/topic/174565-headerlocation-httpwwwexamplecom-does-not-work-on-a-java-browser/#findComment-919996 Share on other sites More sharing options...
redarrow Posted September 17, 2009 Share Posted September 17, 2009 <?php if(isset($_GET['ref']=="1")){ header("location: what_ever.com"); exit; } ?> not checked freelancing sorry. Link to comment https://forums.phpfreaks.com/topic/174565-headerlocation-httpwwwexamplecom-does-not-work-on-a-java-browser/#findComment-919997 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.