NothingAG / contao-geodomains

Contao extension that redirects a visitor according to its IP address to a specific root page. All settings are done in the page settings. The extension provides a frontend module to manually switch between the root pages/ regions.
1 stars 2 forks source link
unmaintained

[UNMAINTAINED]

This project is not maintained anymore.

CONTAO EXTENSION: GEODOMAINS

(Previously GEOIP)

Redirects a visitor according to its IP address to a specific root page. All settings are done in the page settings. The extension provides a frontend module to manually switch between the root-pages/ regions.

SETUP AND USAGE

Prerequisites

Installation

  1. Install the GeoLite database from MaxMind in the same database as your Contao installation. The required DB scheme can be found in the file config/database.sql (see table _tlgeoipcountrywhois)
  2. Copy the files into the modules folder from Contao
  3. Update the database (e.g. with the Extension manager)
  4. Configure which root page is responsible for which country in the root page settings
  5. Insert the frontend module CountryList to manually switch between the regions
  6. Enjoy!

GeoIp & Proxy

Note that if x forwarded for is set the redirect might fail to work. If this is the case (mobile on 3g). To get around that make sure an initconfig.php file is added to system/config and it contains the following lines:

unset($_SERVER['HTTP_X_FORWARDED_FOR']);
unset($_SERVER['HTTP_X_FORWARDED_HOST']);

VERSION HISTORY

2.2.0 (2014-09-24)

2.1.0 (2013-08-13)

2.0.0 (2013-06-05)

1.0.0 (2012-07-12)

KNOWN ISSUES

LICENSE