View Single Post
Old 01-19-2003, 12:17 PM  
European Lee
Confirmed User
 
Join Date: Dec 2002
Location: Daytona Beach
Posts: 7,133
Pipecrew,

The PHP coding in the article i wrote can be edited like this to purely filter out your japanese traffic:

[?
$user_lan = $HTTP_ACCEPT_LANGUAGE;

if($user_lan=='jp') {
## Japanese
$redir_url = "http://www.japaneselanguagepageurl.com";

## US traffic or Rest of world not defined above
} else {
$redir_url = "http://www.yourmainpageurl.com";

}

header("Location: $redir_url");
exit;

?]

You also need to change the [ and ] to < and > respectively at the start and end of the .php file.

If you need any more help dont hesitate to drop me an email [email protected] or head across to the ARS Resources forums located here http://www.arsresources.com/forums/

Regards,

Lee
European Lee is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote