GeoIp

Possible to redirect users to a new page based on GeoIP?

1 year 6 months ago #72134

Daclina's Avatar Daclina

Hi there,

Is there a way to use the Advanced Module manager and GeoIP to redirect users that land on the homepage only, to a different page?

Thanks

1 year 6 months ago #72154

Peter van Westen's Avatar Peter van Westen Admin

You could use a module and place a piece of php code in there using Sourcerer:

{source}<?php
header("Location: http://example.com/myOtherPage.php");
die();
?>{/source}

1 year 6 months ago #72210

Daclina's Avatar Daclina

What I mean is that I need to get users from Country X redirected to Domain Y, similarly Country Y to Domain Z. I could make this module available on the homepage only so it only applies to users who land there and not the rest of the site.

Still dopable?

1 year 6 months ago #72211

Peter van Westen's Avatar Peter van Westen Admin

Yes. So you can make one module per redirect.
Then use the Advanced Module Manager assignments to assign it to the homepage and whatever country or ip range you want.

1 year 6 months ago #72217

Daclina's Avatar Daclina

What I was trying to avoid was having to manually rely on IP's hence why I asked if there is a way to USE the GeoIP library (easy to update from the backend) to achieve the redirect per country effect. Or would you still suggest I use a different redirect method that I just embed using Sourcerer?

1 year 6 months ago #72220

Peter van Westen's Avatar Peter van Westen Admin

Advanced Module Manager Pro has a Country assignment too. So you do not have to use specific IPs.
Please check out what assignments are available.

1 year 6 months ago #72223

Daclina's Avatar Daclina

Oh I see that makes sense. Thank you I will try it.