Jump to content

header('Location: http://www.example.com/'); does not work on a Java Browser


jasonc

Recommended Posts

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 ?

 

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.