Foreign Language Internet Marketing

<  Foreign Language Internet Marketing

Thanks to Howie, a very cool Internet Marketer that I’ve recently been doing a bit of work for, for the inspiration to do this post.

During an email session of show and tell on some foriegn language marketing issues, I recalled having a few different pieces of code that would assist someone in maximizing their traffic.

There are two styles presented below. One is the .htaccess code to do the browser language redirects, and the other is simply php code you can insert on your page above the tag to get the same result.

The .htaccess / mod_rewrite version:

This is much faster than using a large list of IP address ranges, even though it won’t work for those people that haven’t set their language correctly. There is also an Apache module which handles this, however it may be overly complex in my opinion. The following you just need to include in your .htaccess file:

RewriteCond %{HTTP:Accept-Language} en-au [NC]
RewriteRule .*index\.html$ http://www.yourdomain.com/dir/au.php
RewriteCond %{HTTP:Accept-Language} en-nz [NC]
RewriteRule .*index\.html$ http://www.yourdomain.com/dir/nz.php
RewriteCond %{HTTP:Accept-Language} ja [NC]
RewriteRule .*index\.html$ http://www.yourdomain.com/dir/jp.php
RewriteCond %{HTTP:Accept-Language} en-uk [NC]
RewriteRule .*index\.html$ http://www.yourdomain.com/dir/uk.php
RewriteCond %{HTTP:Accept-Language} en-gb [NC]
RewriteRule .*index\.html$ http://www.yourdomain.com/dir/uk.php

The PHP version (Just insert above your tag)

Click here to see the php code. For some reason it won’t allow me to paste it directly on this page without errors.

Enjoy!

- Sean

Technorati Tags: , ,

Posted in Internet Marketing ~ You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply

You must be logged in to post a comment.

« Save the Internet

 
Powered by WordPress and NoseBleed