I want users from Japan to be redirected to www.example.com/test2 when they hit www.example.com/test1. In the menu only Test1 is visible.

What tools do I need? I tried to insert a PHP script into the header with the 'Add to Header' module, but for that I need the directory of the sites, which I do not have. I can also set Geo Rules, but then I have two sites with different URLs which are invisible and unaccessible for those excluded, but the 'Access denied' message is not preferable.

  • 1
    Have you got any kind of multilingual architecture set up (i18n for example)?
    – Chapabu
    Oct 23, 2012 at 13:33
  • You shouldnt be redirecting users in subsite, add GeoIP redirect rules in example.com instead of example.com/test1
    – GoodSp33d
    Oct 23, 2012 at 13:43
  • @Chapabu I have no such thing, as the main language is always English
    – Konlir
    Oct 23, 2012 at 13:45
  • @kantu I don't want to redirect from the main page directly, the main page should be accessable for everyone. But when users from Japan click on the test-link they have to be redirected to their version of the test-link.
    – Konlir
    Oct 23, 2012 at 13:47

2 Answers 2


You can have country based redirection to any internal, or exernal path using the Context, Context GeoIP, and the Context Redirect modules.


try looking up in the .htaccess and do the changes, modify the rewrite rules..once you are in the .htaccess just go through the file once..you will understand as all is commented pretty nicely...

  • 3
    Hello, and welcome on Drupal Answers. What changes do the file exactly need? Saying to alter the .htaccess file without to say which changes are necessary is not exactly answering the question.
    – apaderno
    Jan 19, 2013 at 19:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.