![]() | | ||||||||
| | #1 |
| Warrior Member Join Date: May 2008 Location: , , Romania.
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
|
I have a niche autotoblog that drives me about 100 italian visitors daily. My conversion rate is 1:200. I am not glad with that. What I need to do is redirect all my italian visitors to a nice landing page I created and keep all other visitors and spiders on my autoblog. I just need a simple php script. Italian IPs are redirected to another page while all other visitors must remain on the page where they arrive (must not be redirected in any way because my visitors come from my wordpress posts that are indexed by google and I dont wanna mess with the GoogleBot) Your help would be deeply appreciated. |
| | |
| | #2 |
| HyperActive Warrior War Room Member Join Date: Aug 2009
Posts: 107
Thanks: 3
Thanked 18 Times in 11 Posts
|
Hey there invest207. There are a few options here. Not sure how much programming you do but you can do this pretty easily by making a call to a geolocation webservice. There are a few API's out there that are free. Check these links out, they offer code examples as well: roshanbh(dot)com(dot)np/2008/07/getting-country-city-name-from-ip-address-in-php.html www(dot)ipinfodb(dot)com/ip_location_api.php freegeoip(dot)appspot(dot)com/ www(dot)hostip(dot)info/use.html Replace the (dot) with an actual . Im not allowed to post links yet. |
| | |
| | #3 |
| Personal hygiene coach Join Date: Aug 2005 Location: Potemkin Village
Posts: 1,083
Thanks: 268
Thanked 377 Times in 254 Posts
|
You don't need to look any further than the Warrior Forum: How can I redirect traffic based on the visitor's country? But, if you have your own server, you might find it best to install the mod_geoip module for Apache because it's a lot faster than the PHP module. Also, with the Apace module, you can do .htaccess based redirects. |
| | |
| | #4 |
| On the grind... War Room Member Join Date: May 2010
Posts: 31
Thanks: 4
Thanked 6 Times in 6 Posts
|
Hey, Sorry to bring up a really old thread but did a search and thought it would be better than starting a new. Anyhow... I currently have a wordpress squeeze page; I would like to know if it is possible to redirect visitors based upon country but keep the main page in other words not have to make index2.php etc etc. Would it mean me having to produce say 5 wordpress pages just to have them redirect? and would this effect my SEO ranking at all becuase all pages would effectivly be dupes. So you would have usa.salespage.com , uk.salespage.com and so fourth. Does anyone have any ideas at all on this? |
| | |
| | #5 | |
| Advanced Warrior War Room Member Join Date: Nov 2009
Posts: 41
Thanks: 0
Thanked 6 Times in 5 Posts
| Quote:
If the content & offers on each of those pages are going to be different, then it makes sense. You will need a geo-database API or the actual geo DB for this. | |
| | |
| | #6 |
| On the grind... War Room Member Join Date: May 2010
Posts: 31
Thanks: 4
Thanked 6 Times in 6 Posts
|
Do you know where I can get one from? And also will my main site stay the same or will I need some index.php for the redirect?
|
| | |
| | #7 | |
| Banned Join Date: May 2010 Location: Up to me
Posts: 148
Thanks: 3
Thanked 14 Times in 13 Posts
| Quote:
www . maxmind . com / app / geolitecity Commercial database is $370, but the lite version seems to work quite well, although not 100%. API and code is also very simple to work with. I'd recommend it! | |
| | |
| | #8 |
| On the grind... War Room Member Join Date: May 2010
Posts: 31
Thanks: 4
Thanked 6 Times in 6 Posts
|
Thank you for your reply! I have downloaded and made up a PHP file and all works well! Just one quick question which I find doesn't really work with me; Say if a user goes to the main domain and he/she is in the UK and gets directed to websitename.com/uk thats all good and works well but what if they click on a link for the usa? websitename.com/usa doesn't seem to forward them to the correct country. Is there some kind of fix for this? |
| | |
| | #9 |
| Banned Join Date: May 2010 Location: Up to me
Posts: 148
Thanks: 3
Thanked 14 Times in 13 Posts
|
Best way I can suggest is add a cookie when they click the link, which overrides the IP lookup check.
|
| | |
| | #10 |
| Warrior Member Join Date: Jan 2007 Location: , , United Kingdom.
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
|
Hi This site may help. GEO IP Targeting Script - Geo IP Country Detection Redirect Script it has 2 GEO targeting scripts One script to display affiliate ad code based on site visitors County IP and another script to GEO IP country redirect to another page. |
|
All The Latest Resources & FREE STUFF for Affiliate & Niche Marketing at http://www.NICHExtra.com/ . | |
| | |
| | #11 |
| Warrior Member Join Date: Sep 2010
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
I am also looking for the same. I was told that I should get the form first. There is an online firm that helps in creating.
|
| | |
| | |
![]() |
|
| Tags |
| create, geoip, php, redirect |
| Thread Tools | |
| |
![]() |