• Resolved Coop920

    (@coop920)


    Hi There,

    Thank you for creating this plugin. I’m having difficulty understanding how to use it though. I only want to redirect British (Great Britain) users to a different url (separate site https://www.worldvillages.org.uk/). But when i setup the redirection rule, the redirect works, but it also appears to be redirecting ALL users (regardless of location) to the British site I configured.

    Basically it should be the following:

    Great Britian -> https://www.worldvillages.org.uk
    Rest of world -> https://www.worldvillages.org

    Any insight would be great.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author ip2location

    (@ip2location)

    Hi,

    If your website is hosted behind a reverse proxy, please make sure it’s forwarding the correct IP address to your website.

    You can enable the debugging log in plugin settings, then check the debug.log generated under the plugin folder for more details.

    Thread Starter Coop920

    (@coop920)

    Hi There,

    The site is not behind a reverse proxy. I will check the logs though.

    Thanks

    Thread Starter Coop920

    (@coop920)

    Hi There,

    So i enabled logs, but not seeing any log files getting generated. The site is hosted on wp engine. Do i need to turn on define( ‘WP_DEBUG_LOG’, true ); ?

    Should this be setup as a ‘domain’ redirect, ‘any page’ redirect, ‘url’ redirect? Sorry for all the questions, but it seems like this should work easily.

    Thanks

    Thread Starter Coop920

    (@coop920)

    Ok, i got the logs to show (by turning on wp debug log) and here is what it found:

    2019-12-17 21:32:59 195.12.48.37 URL : https://www.worldvillages.org/our-work
    2019-12-17 21:32:59 195.12.48.37 Lookup By : BIN Database
    2019-12-17 21:32:59 195.12.48.37 Country : United Kingdom [GB]
    2019-12-17 21:32:59 195.12.48.37 Matched Rule : [GB] is listed in [-US]
    2019-12-17 21:32:59 195.12.48.37 Result : Redirection aborted. (Reason: Same page redirection)

    • This reply was modified 4 years, 11 months ago by Coop920.
    Thread Starter Coop920

    (@coop920)

    So my current configuration is the following:

    Location: United Kingdom
    From: Any Page
    Destination: [enter url] https://www.worldvillages.org.uk
    Redirection code: 301

    So this configuration works for redirecting https://www.worldvillages.org -> https://www.worldvillages.org.uk on British computers BUT also redirects https://www.worldvillages.org to https://www.worldvillages.org.uk on all other computers too. Not what i need.

    Please advise?

    Plugin Author ip2location

    (@ip2location)

    Please contact us directly at support [at] ip2location.com and so we can investigate closely.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Not understanding how to use’ is closed to new replies.