• Hi,
    The plugin is successfully blocking a country, but it is not redirecting.
    I have pasted a url into the “url to redirect to” field, but it only brings up the message when a blocked IP tries to go the page.

    The situation is similar if I try redirecting to a page on my own site.

    I am only trying to protect one page on my site.

    Regards,
    Tony

Viewing 8 replies - 1 through 8 (of 8 total)
  • hbfsw

    (@hbfsw)

    I found this plugin has same problem. Redirecting is not working. Hope author and help us to check this issue.

    Regards,
    Frank

    hbfsw

    (@hbfsw)

    It only shows following messages:

    Warning: Cannot modify header information – headers already sent by (output started at….blockcountry-checks.php on line 407

    I do not want blockcountry-checks.php be showed, but redirection does not work.

    best regards,
    Frank

    Plugin Author Pascal

    (@iqpascal)

    Hi Frank,

    In your case you probably cannot use the redirect as another plugin or your theme sends out headers before this plugin can.

    You can try to deactivate and reactivate the plugin. The plugin will try to get first place but this may not always help.

    Plugin Author Pascal

    (@iqpascal)

    And I forgot.

    The error is because you (or your webhosting company) has display_errors set to display all errors. Which is not a wise thing to do for a production site.

    Plugin Author Pascal

    (@iqpascal)

    @tony: Do you have an error message in your log? You may face the similar problem as Frank does

    hbfsw

    (@hbfsw)

    Thank you Pascal. I tried to deactivate and reactivate the plugin, but it’s not working. I had changed setting to display_errors OFF. Thank you.

    pixelbird

    (@pixelbird)

    Hi, we are having an issue where it works one way but not the other.

    We have two configurations that we are using
    1. Local – Front End Block AU (Inverse) – redirect to google.com / Back End Block AU (Inverse) redirect to google.com

    This setting is to only allow visitors from Australia to view both Frontend / Backend.

    Front End does not redirect it shows the message / Backend redirects as expected.

    2. Standard = Front End Block China / Russia – Backend Block AU (Inverse)

    This setting is to block visitors from China and Russia to the front end and only allow visitors from Australia to view the back end.

    Front End redirects as expected / Backend redirects as expected.

    It seems that the front end redirect does not work when you choose the inverse option to block all countries except for the country you specify. Instead it is a white screen with the default message.

    Are you able to duplicate this and suggest a fix to get the front end redirecting instead of displaying the default message when you want to inverse a country?

    Plugin Author Pascal

    (@iqpascal)

    I cannot reproduce this situation. Is this on the same site? Or different sites?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘redirect not working’ is closed to new replies.