chukdocs
Status: New User - Welcome
Joined: 08 Feb 2007
Posts: 1
Location: UK
Back to top
Posted: Feb 8, 07, 15:17    Full Operating system language detection - Version 0.3.3
The following details an omission from the script in the redirection routine. For details of the recommendation below visit: [link]

The header "HTTP/1.1 302 Moved Temporarily" has to be sent before the redirect to comply with recommended practice.

To resolve this issue add the line: header "HTTP/1.1 302 Moved Temporarily" as shown in the code segment below.

:: Code ::

// this is just a sample, replace target language and file names with your own.
   elseif ( $feature == 'header' )
   {
      header("HTTP/1.1 302 Moved Temporarily"); // Added by Ian Paul Short aka chukdocs (2007/02/08)

      switch ( $user_languages[0][1] )// get default primary language, the first one in array that is

Display posts from previous:   

All times are GMT - 8 Hours