![]() | ![]() | ||||||||
| | #1 |
| Active Warrior Join Date: Aug 2012 Location: United States
Posts: 38
Thanks: 25
Thanked 0 Times in 0 Posts
|
Hi guys, I need a script which will redirect users to appropriate URL according to their IP address once they click link or button. Does anybody can share such script and explain how to implement it in wordpress site? Thanks in advance! |
| | |
| | #2 | |
| WordPress Developer War Room Member Join Date: Mar 2011 Location: NH, FL, & Wherever I May Roam
Posts: 447
Blog Entries: 3 Thanks: 39
Thanked 157 Times in 120 Posts
| Quote:
It would far more efficient to be able to just enter an ip and a page and hit save. This plugin should do what you want. Read the directions, there are many things you can do with the plugin and redirecting based on ip is one of them. | |
| → "WordPress Plugin Creation How-To Guide" (FREE w/optin) ← ★★ WPCodeKing.com - "Quality not quantity". ★★ Plugin Creation Blueprint Officially Launches 06-11-13! Read About It... if (!question_exist ('are_you_for_hire'); echo '<"99% Not For Hire">'; | ||
| | |
| | #3 | |
| Active Warrior Join Date: Aug 2012 Location: United States
Posts: 38
Thanks: 25
Thanked 0 Times in 0 Posts
| Quote:
Thank you for answer! I installed this plugin that you suggested but i don't see anywhere the option which allows to redirect according to IP. Can you tell me where this option? Thanks! | |
| | |
| | #4 | |
| WordPress Developer War Room Member Join Date: Mar 2011 Location: NH, FL, & Wherever I May Roam
Posts: 447
Blog Entries: 3 Thanks: 39
Thanked 157 Times in 120 Posts
| Quote:
By the author: You can add your own code logic before and between any of the plugin's normal redirect checks if needed. See Other Notes / How to Extend for documentation. Some examples include: redirecting the user based on their IP address; and redirect users to a special page on first login. | |
| → "WordPress Plugin Creation How-To Guide" (FREE w/optin) ← ★★ WPCodeKing.com - "Quality not quantity". ★★ Plugin Creation Blueprint Officially Launches 06-11-13! Read About It... if (!question_exist ('are_you_for_hire'); echo '<"99% Not For Hire">'; | ||
| | |
| | #5 | |
| Active Warrior Join Date: Aug 2012 Location: United States
Posts: 38
Thanks: 25
Thanked 0 Times in 0 Posts
| Quote:
Thanks a lot! | |
| | |
| | #6 |
| WordPress Developer War Room Member Join Date: Mar 2011 Location: NH, FL, & Wherever I May Roam
Posts: 447
Blog Entries: 3 Thanks: 39
Thanked 157 Times in 120 Posts
|
Ok, the php in the readme.txt needs to be completed according to what you want to do. I don't have time to do that tonight, but perhaps tomorrow (or someone else will?) post it for you and tell you where to place it. There are some advanced (and premium) plugins that do what you want as well as geo redirection. Are you just looking to redirect a certain user by his ip according to country/location, or is this a member your redirecting? |
| → "WordPress Plugin Creation How-To Guide" (FREE w/optin) ← ★★ WPCodeKing.com - "Quality not quantity". ★★ Plugin Creation Blueprint Officially Launches 06-11-13! Read About It... if (!question_exist ('are_you_for_hire'); echo '<"99% Not For Hire">'; | |
| | |
| | #7 | |
| Active Warrior Join Date: Aug 2012 Location: United States
Posts: 38
Thanks: 25
Thanked 0 Times in 0 Posts
| Quote:
I think i explained not clearly myself in the beginning. What i need is geo redirection according to IP address of my visitors. I probably made a mistake when i sad "users". Yeah, so i have a CPA affiliate site. And as you know with CPA offers they have a different landing page for each country. So what i want to do is just not to lose money on those visitors who are not from US but redirect them to the appropriate landing page according to their IPs after they clicked the "call to action" Thanks so much David! | |
| | |
| | #8 |
| WordPress Developer War Room Member Join Date: Mar 2011 Location: NH, FL, & Wherever I May Roam
Posts: 447
Blog Entries: 3 Thanks: 39
Thanked 157 Times in 120 Posts
|
Ok, that changes things. You really should use a geo redirection plugin. There are tons of them out there. If you want a free one, search WordPress.org/extend/plugins If you don't mind paying search codecanyon.net/category/wordpress |
| → "WordPress Plugin Creation How-To Guide" (FREE w/optin) ← ★★ WPCodeKing.com - "Quality not quantity". ★★ Plugin Creation Blueprint Officially Launches 06-11-13! Read About It... if (!question_exist ('are_you_for_hire'); echo '<"99% Not For Hire">'; | |
| | |
| | #9 | |
| Active Warrior Join Date: Aug 2012 Location: United States
Posts: 38
Thanks: 25
Thanked 0 Times in 0 Posts
| Quote:
What would you suggest to use? Free or paid? One more thing, i heard that there is some site called "maxmind" which somehow relates to all of this redirection procedure. Can you tell me how it relates to that? Thank you David! | |
| | |
![]() |
|
| Bookmarks |
| Tags |
| create, redirection, script, user |
| Thread Tools | |
| |
![]() |