WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ok, i have complicated issuse (i think)... i created a site that has 3 languages
without any plugin since none meet my needs....

i create 2 sub domains named:

  • he.example.com
  • en.example.com

they both lead to the same site.

When the he.example.com loads:
i want to change all the links inside the page according
to the specific sub-domain... for example my menus, recent posts
and all the other link on pages.

that way i can control which meta boxes, texts and stuff are being loaded
on the site and thus creating a translated sites without needing any plugin
(tested 3 so far - none of them answer my requirments)...

how can i "hijack" the site url the page uses when loads and change the
output accoring to the current sub-domain?

share|improve this question
Have a look at this – Sisir May 5 '14 at 17:49
Wow, looks intersting ;) thanks for the share - going to read more in the following link to see if this answers my question. – Sagive SEO May 5 '14 at 17:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.