[wp-hackers] Multi-domain, multi-lingual, but not Networked

Mike Little wordpress at zed1.com
Sun Jun 26 10:43:46 UTC 2011

On Sun, Jun 26, 2011 at 08:36, Joshua Sibelman <joshua.sibelman at gmail.com>wrote:

> Thanks for the response Mike.
> Can you tell me how domain mapping allows for that behavior? To me, it
> appears that each different domain name has its own discrete content.
Domain mapping allows you to have one domain's content e.g.
subsite.myhosting.com appear to be on myotherdomain.com. Normally you would
want all visitors to be redirected to myotherdomain.com, but, crucially, you
don't have to do that. So if a visitor comes in on subsite.myhosting.com the
content is served with that domain, if they come in on
myotherdomain.comthey stay on that domain.

So, in your case, you could set up, for example, the english site on
myenglishdomain.com and then use domain mapping to also serve the same WP
site as midominioespanol.es

You might have to hack WPML to use the domain name to recognise which
language to serve (instead of the path /en or /es or query var kang=es).  Or
you could possibly use a simple .htaccess trick to always add ?lang=es to
the midominioespanol.es  domain.

Mike Little

More information about the wp-hackers mailing list