I am creating a news website like nytime.com but multicountries ( different news and languages for different countries ).
So I need to convert IP address to country and so redirect user to the appropriate subdomain. For example, if a spanish user go to mysite.com he will be redirected to es.mysite.com.
You can propose me other solutions if you want but remember it must be optimized for search engines.