WordPress.org

Ready to get started?Download WordPress

Forums

Geo Redirect
[resolved] How can I set Redirect for all countries except my country? (4 posts)

  1. ikawyzo
    Member
    Posted 2 years ago #

    Dear Ladrower,
    Your plugin is very very very very very good. Thank you so much!
    And I have on question:
    How can I set Redirect for all countries except my country?
    Ex:
    - My country is Germany
    - My website is: http://abc.com
    Now, I only want traffic from Germany can visit http://abc.com, and all other countries will be redirect to http://abc.com/en
    I see have more 200 countries, I can't add all it to set redirect option :D

    Thank you very much!

    http://wordpress.org/extend/plugins/geographical-redirect/

  2. Artem Platonov
    Member
    Plugin Author

    Posted 2 years ago #

    Hello, Ikawyzo!
    Try to do next:

    • For «default redirect» select «Language Code» among «Redirect options», enter «Option Value» = «en» and optionally mark «Use pretty permalink». This will redirect all of your visitors to abc.com/?lang=en or abc.com/en/
    • Then select Germany among the countries selectbox and add it to the redirect options list. For this country select «Domain Name» among «Redirect options» and enter the value «http://abc.com» (just remove substring «de.»)
      This setting will affect only on visitors from Germany and will not execute any redirect, because of the equal domain. Also german visitors will have the possibility to visit abc.com/en/ page.
  3. ikawyzo
    Member
    Posted 2 years ago #

    Dear Artem Platonov,
    Awesome! You are Awesome.
    Thank you so much :D

    And I have one other question:
    How can I set Redirect for all countries except my country?
    Ex:
    - My country is Germany
    - My website is: http://abc.com/de
    Now, I only want traffic from Germany can visit http://abc.com/de, and all other countries will be redirect to http://abc.com/
    I see have more 200 countries, I can't add all it to set redirect option :D

    Thank you very much!

  4. ikawyzo
    Member
    Posted 2 years ago #

    Dear Artem Platonov,
    I have one other question:
    This plugin can't working (In fact working 50%) when I use Wp-Super-Cache. How can fix it?
    Thanks a lot!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic