Rhobur Posted May 10, 2012 Share Posted May 10, 2012 (edited) hi, Does anybody know where should I put the GeoIp code for redirecting users based on their IP ? I tried in mytheme/index.php but doesn't seem to work. GeoIp is installed by the provider, I have GeoIp.inc and .dat file in a directory, they can be called so no problem here, no error message either, just doesn;t work. Regards, R. SOLVED: Works if inserted in the root index.php not theme's one. Edited May 14, 2012 by Rhobur (see edit history) Link to comment Share on other sites More sharing options...
mefistor Posted June 14, 2014 Share Posted June 14, 2014 On 5/10/2012 at 1:47 PM, Rho_bur said: hi, Does anybody know where should I put the GeoIp code for redirecting users based on their IP ? I tried in mytheme/index.php but doesn't seem to work. GeoIp is installed by the provider, I have GeoIp.inc and .dat file in a directory, they can be called so no problem here, no error message either, just doesn;t work. Regards, R. SOLVED: Works if inserted in the root index.php not theme's one. Hello. Coudl you explain where do i have to put the code for redirect? www.ladolcevitashop.com Thanks B.R Link to comment Share on other sites More sharing options...
Sophia(sofi) Posted June 9, 2015 Share Posted June 9, 2015 Hey Rho_bur can you guide us step by step how to get this going ... I have installed the geoip module. Then in preferences downloaded the dat file and so I have the .inc file also there and have enabled geolocation. Now I wanna know what piece of code is to be inserted in the index.php Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now