Reputation: 295
If I had several country sites, e.g. .co.uk, .de, .fr etc... how would be best to go about redirecting based on IP information (or other sources if recommended)? Using MVC 3 and not browsers that don't support HTML5.
Upvotes: 0
Views: 2171
Reputation: 180987
You could use Maxmind's free GeoIP database to figure out what country the client is in.
They have a C# API that should work well with MVC3.
Upvotes: 2