multilanguage redirect not working in Firefox 1.0.4
Posted: Sat 16. Jul 2005, 02:28
Hello everybody,
I have following multilanguage redirection code working in all tested browsers except Firefox 1.0.4:
It worked perfectly with Firefox 1.0.3 and IE 6.
I'm really puzzled because i only get a blank page and no source code.
If I enter the URL directly such as http://www.website.com/index.php?german it works perfectly again, so it seems to be a problem in the browser FF 1.0.4 interpreting the above code.
Any ideas ?
Thank you in advance
I have following multilanguage redirection code working in all tested browsers except Firefox 1.0.4:
Code: Select all
[PHP] if(!$GLOBALS['aktion'][0]) { switch( strtolower( substr( $_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 4 ) ) ) { case 'de': header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?german'); exit(); case 'es': header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?spanish'); exit(); case 'fr': header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?french'); exit(); default: header('Location: '.$GLOBALS['phpwcms']['site'].$GLOBALS['phpwcms']['root'].'index.php?english'); exit(); break;} } [/PHP]
I'm really puzzled because i only get a blank page and no source code.
If I enter the URL directly such as http://www.website.com/index.php?german it works perfectly again, so it seems to be a problem in the browser FF 1.0.4 interpreting the above code.
Any ideas ?
Thank you in advance