[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
- 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)
- Copy the files into the modules folder from Contao
- Update the database (e.g. with the Extension manager)
- Configure which root page is responsible for which country in the root page settings
- Insert the frontend module CountryList to manually switch between the regions
- 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)
- Switch to uuid for images
- Added skip functionality for specific visible page tress to not appear in the gd list (available in site structure)
2.1.0 (2013-08-13)
- Added skip functionality for hidden page tree entries (set visibility in the backend)
2.0.0 (2013-06-05)
1.0.0 (2012-07-12)
KNOWN ISSUES
- We had to add the "gd_fallback" flag manually to certain page roots, otherwise it wouldn't use the geo redirection if
the browser had something else than English as preferred language.
- Unable to fully transfer database.sql to dca files
LICENSE