Title: Same database content using two different subdomains
Last modified: August 20, 2016

---

# Same database content using two different subdomains

 *  [h20boss](https://wordpress.org/support/users/h20boss/)
 * (@h20boss)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/same-database-content-using-two-different-subdomains/)
 * I need to serve up two websites under two sub-domains. I do not have access to
   the top-level domain, so WordPress has been installed in a sub-domain. Each site
   will use the exact same content from the database, except I will use PHP to change
   some of the overall look and feel.
 * I need the sites to be totally separate from each other when users are downloading
   assets, clicking URLs, running searches, etc. From an /wp-admin perspective, 
   it makes no difference.
 * For example, here are two sub-domains:
    - [http://microsoft.myblog.com](http://microsoft.myblog.com)
    - [http://apple.myblog.com](http://apple.myblog.com)
 * All posts will be displayed on both sites, but Apple users will never see anything
   about Microsoft and vice versa. The HTTP requests for the assets would need to
   be either [http://microsoft.myblog.com/images/](http://microsoft.myblog.com/images/)
   or [http://apple.myblog.com/images/](http://apple.myblog.com/images/) or just/
   images/.
 * Can someone give me instructions on how to set up the two sub-domains to do what
   I described using the domain mapping plug-in?
 * If there’s anyway to make it so none of the HTML has a domain hard coded, then
   I won’t need to use the plug-in, but this doesn’t seem possible to do.
 * [http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/](http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * (@wpmuguru)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/same-database-content-using-two-different-subdomains/#post-3221253)
 * You can’t do what you are describing using the DM plugin.

Viewing 1 replies (of 1 total)

The topic ‘Same database content using two different subdomains’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-mu-domain-mapping.svg)
 * [WordPress MU Domain Mapping](https://wordpress.org/plugins/wordpress-mu-domain-mapping/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-mu-domain-mapping/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-mu-domain-mapping/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ron Rennick](https://wordpress.org/support/users/wpmuguru/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/same-database-content-using-two-different-subdomains/#post-3221253)
 * Status: not resolved