Forums / Extensions / Extension 'simple browser language redirect' : pb !!

Extension 'simple browser language redirect' : pb !!

Author Message

Anthony M.

Wednesday 01 October 2008 2:34:07 am

Hi,
i have 2 websites (1 in french and 1 in english), i changed this code in the extension to make the good redirection :

switch ($acceptedLang) {
                case 'fr':
                    header("Location: www.mysite.fr");
                    exit;
                    break;
                case 'en':
                    header("Location: http://www.mysite.com");
                    exit;
                    break;
                default:
                    header("Location: http://www.mysite.com");
                    exit;
            }

but it doesn't work under Firefox and Internet Explorer 7
is it normal ?

thanks for your help

Anthony

Jean-Luc Nguyen

Friday 17 October 2008 6:38:00 am

Hello,

What do you mean by "doesn't work under Firefox and Internet Explorer 7"?
As this is PHP code side, you should try to error_log() in order to trace the behaviour of your code.

http://www.acidre.com