WordPress.org

Ready to get started?Download WordPress

Forums

MultiSite (Sub-directories install) with second domain? (6 posts)

  1. Ooypunk
    Member
    Posted 1 year ago #

    I have this MultiSite install (Sub-directories) that is working correctly, but now I am trying to get it to work on two domains.
    Getting WordPress to work on two domains is simple in single-site install, but in MultiSite I get either "Error establishing a database connection", or I get redirected to the original domain.

    Isn't there some way to trick WP to accept the second domain?

    I tried adding a record to the wp_blogs table, but that did nothing.

  2. Yes, it's called using a domain mapping plugin :)

    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/

  3. Ooypunk
    Member
    Posted 1 year ago #

    Isn't that plugin to map one domain name to one blog?

    What I want is that all blogs listen to two domains, like this:
    - blog1 is now located at domain1/blog1; domain2/blog1 should show the same blog
    - identically, blog2 is at domain1/blog1; domain2/blog2 should show the same blog
    - and so on

    I have tried the domain mapping plugin, but it doesn't work (it won't record into the database the mappings I want to create). If what I described is possible with this plugin, please let me know.

  4. It is possible, though it's crap for your SEO and I wouldn't do it. You'd have to map each site and use domain2.com as the NON primary mapping.

  5. Ooypunk
    Member
    Posted 1 year ago #

    Why is it crap for the SEO? Because it would be seen as duplicate content or something?

    Mapping every site twice would be no problem.

  6. Because it would be seen as duplicate content or something?

    Bingo :)

Topic Closed

This topic has been closed to new replies.

About this Topic