This project is not maintained anymore.
(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.
- Contao 3.2.x
- 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 tl_geoipcountrywhois)
- 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!
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']);
- Switch to uuid for images
- Added skip functionality for specific visible page tress to not appear in the gd list (available in site structure)
- Added skip functionality for hidden page tree entries (set visibility in the backend)
- Initial Contao 3 version
- Initial release
- 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
- Author: Nothing Interactive, Switzerland
- Website: https://www.nothing.ch/
- Version: 2.2.0
- Date: 2014-10-10
- License: GNU Lesser General Public License (LGPL)