Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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

2 Answers 2

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

 
discard

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