user203538
user203538

Reputation: 295

MVC 3 - Redirect based on country?

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

Answers (1)

Joachim Isaksson
Joachim Isaksson

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

Related Questions