WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

What would be the best solution for a wp (cms style) site containing a sub site for consumers and businesses.

I've made a wp theme and its almost finished. In essence its gives you two choice to visit as a consumers or as an business.

Both have the same theme style but differ in some content used out of the wp database and some static content used. (so you've got two headers.php and different article categories for both optins)

Now I've got it working by using a switch statement in the index.php in the theme file. All works fine but the url's you've get don't look very professional.

I would like to have it worked like this: www.domain.com --> gives you two options one brings you to www.domain.com/consumers/ the other to www.domain.com/businesses/

I cant get this to work because for instance the articles use www.domain.com/articles/bla/etc.

So what would be the best way to achieve this? I'm thinking about: -Multiple installations sharing the same database (dont like this idea because you've got more maintenance) - setting it up in the .htaccess if this possible and how?

thank you for any advice or solutions

share|improve this question

migrated from stackoverflow.com May 18 '11 at 13:00

This question came from our site for professional and enthusiast programmers.

have you looked at WordPress MultiSite installation? – Lobo May 17 '11 at 21:02

I would setup two WP installations at:

  • /consumers/
  • /business/

Then you just need to share the theme between the two, adding switch statements to a single installation or trying to amend the rewrite structure can get messy quickly.

The example.com homepage can just be a simple HTML page allowing the customer to link between the two.

share|improve this answer

The multi-site function would work as well, I would think.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.