Currently, I have a script which is accessible through the following domain
http://me.domain.com/path/index.php
If certain condition met, I will perform redirection back to itself by using
header('Location: index.php');
After redirection, most major browsers will end up at
http://me.domain.com/path/index.php
still. However, for some 3rd party vendor's browsers (For sim card simulation purpose), they will end up at (Take note on the missing path)
http://me.domain.com/index.php
I was wondering, it is because the 3rd party vendors doesn't implement their browsers correctly? Or, it is OK for different browsers yields different behaviour when dealing with redirect?
I realize if I use the following code,
// $_SERVER['PHP_SELF'] is /path/index.php
header('Location: '.$_SERVER['PHP_SELF']);
It will work in all browsers, without missing path.