Full Operating system language detection - Version 0.3.3
chukdocs
Status: New User - Welcome
Joined: 08 Feb 2007
Posts: 1
Location: UK
Reply Quote
The following details an omission from the script in the redirection routine. For details of the recommendation below visit: www.w3.org/2001/tag/doc/alternatives-discovery-20060620.html

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


Back to top
Display posts from previous:   

All times are GMT - 8 Hours