Create website with a switch between private and business

I'm about to set up a website of a certain company which has private and business customers.

  • There's going to be a switch (private/business) in the top left corner of the website.
  • Both sections have different main menu's.
  • A cookie should be set when visitor choose their customer type and customers should be redirected the second time they visit.

I just read about creating a Wordpress multisite for this. Is that the correct solution? Or are there other (better) solutions for this issue?

Topic switch multisite Wordpress

Category Web


How I see you can implement this is:

https://example.com - This is the landing page/site where you have a menu on the top left and a user can choose "Private" or "Business". You can set a cookie based on what user clicked on.

https://example.com/private/ - This could be an inner page which has it's own template and loads a menu for private site OR this could be set up as a WordPress installation in a /private subdirectory

https://example.com/business/ - This could be an inner page which has it's own template and loads a menu for business site OR this could be set up as a WordPress installation in a /business subdirectory

Next time when user lands on https://example.com your landing page template shall read the cookie and redirect the user to appropriate site.

I hope this helps. WordPress multisite is useful if you need to offer similar WordPress websites to a large number of users. So check your use case and keep multisite as last option.


Multisite doesn't sound like the right solution. What you wanna do is have two different Wordpress menus when you switch private/business. And then you can store the version of the site your customer was last viewing in a cookie (private or business).

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.