Support » Networking WordPress » Mapping multiple domains to the same blog without redirecting

  • Resolved johnnyb


    I have consolidated several standalone WP installs into a single WP 3.0 install using the WordPress MU Domain Mapping Plugin, and it works great, but now I’m adding a new blog to the mix and am having problems.

    The new blog is going to be written in 2 languages, so I have 2 domains for it, (1 English & 1 French). I’m wanting to use WPML to handle the multi-language aspects of the blog, and it installs without problems. However, when I go to I get redirected to, and I never see my French content. I believe this is because is set as the primary domain in the domain mapping plugin.

    I’ve tried setting both and as primary domains, (yes, it’s possible – probably a bug), and I end up in a redirect loop. Similarly, I’ve tried setting them both as non-primary and I end up at the – the subdomain that I set the blog up as.

    So, the question is, how do I get both and mapped to the same blog without being redirected to a “primary” domain?


Viewing 7 replies - 1 through 7 (of 7 total)
  • Found it – it appears that if I installed wordpress-mu-domain-mapping into mu-plugins then things work as I want.

    Hmm. Looks like I was wrong – it sort of works, but all of the admin panels disappear and the primary URL doesn’t always work, (sometimes I’m sent to the subdomain instead of the mapped domain).

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    the domain mapping plugins also has a file called sunrise.php that goes in the wp-content folder directly. did you do that? 🙂

    Also, if you have the checkbox enabled to keep the subdomain alive, then yeah, you’ll get redirected there when you request the backend.

    Yeah, I’ve got sunrise.php in place. The issue I’m having is that when I go to the site’s front-end I get redirected to whatever domain I set as “primary” in the domain mapping plugin, and I’d like to have both TLDs act as primary domains and serve up the site with no redirection.

    I realize this sounds strange, but the WPML plugin will then handle things and make sure I don’t have duplicate content issues by serving up a different language for each TLD.

    I dove into the code of the wordpress-mu-domain-mapping plugin and think that it doesn’t really support having more than one domain active at the same time, (probably related to its caching – which is a good thing).

    So, will another plugin let me show the same site at more than one domain, (Andrea – will yours – and how/when can I get it)?

    Andrea Rennick


    Customer Care at Copyblogger Media and Studiopress

    Ah, yeah. more than one domain to one blog. The free one doesn’t mine certainly doesn’t (it hides the main domain). The other premium one might, can’t remember.

    I know it’s a weird situation 😉 I wrote a plugin that executes after the free domain mapper and makes it work. I’ll mark this as resolved.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Mapping multiple domains to the same blog without redirecting’ is closed to new replies.