eZ Community » Forums » Extensions » Extension 'simple browser language...
expandshrink

Extension 'simple browser language redirect' : pb !!

Extension 'simple browser language redirect' : pb !!

Wednesday 01 October 2008 11:34:07 am - 1 reply

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

Friday 17 October 2008 3:38:00 pm

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.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from