[resolved] multiple domain, same wp_post, serving each domain through custom taxonomy (5 posts)

  1. njansen
    Posted 4 years ago #

    Hi guys,

    I am trying to figure out what the best way is to realize this.

    I have multiple blogs running on separate domains. I recently merged the post data from the different blog into one wp database where all post live in the same wp_post table. I build a custom taxonomy to differentiate which post belongs to which blog.

    So I have:


    one wp_post table with post for all three blogs.

    custom taxonomy called 'Domain' with value 'blog1' 'blog2' 'blog3'

    And each blog needs to have it's own theme.

    And I need to be able to search across all blogs. (that's why I put all post in one table)

    Is this possible to realize?

    I thought about rewriting the different domains within wordpress (or using plugins like MiniMU) or using mod_rewrite to hide the fact that all blog are running on one wp instance.

    Does anybody have a better solution for this. Nothing is set in stone except multiple domains, different post, different theme and search. I am open to any suggestion to architect this in a better way.

    Thanks a lot

  2. WordPress multisite (which is NOT what you're doing) can do this.

    Install it once, make subsites for blog2 etc, and then use a domain mapping plugin to map the domains to the subsites.

  3. njansen
    Posted 4 years ago #

    i tried out the multisite solution with the domain mapping plugin but it does not do what I wanted to do

    I need the following:

    http://www.blog1.com -> http://www.mainblog.com/blog1
    http://www.blog2.com -> http://www.mainblog.com/blog2

    But it is important that the it shows http://www.blog1.com/... in the address bar. I want to mask the fact that http://www.blog1.com and http://www.blog2.com are hosted under http://www.mainblog.com. The two blogs are completely independent blogs for the user.

    is that possible?


  4. ... Yes. WordPress multisite with domain mapping does exactly that.

    Install multisite at mainblog.com

    Make a subsite mainblog.com/blog1
    Make another mainblog.com/blog2

    Map blog1.com to mainblog.com/blog1
    Map blog2.com to mainblog.com/blog2

    That's it. It will show blog1.com in the addressbar.

  5. njansen
    Posted 4 years ago #

    Thanks you!

Topic Closed

This topic has been closed to new replies.

About this Topic