Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3935640
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T23:51:11+00:00 2026-05-19T23:51:11+00:00

I need to run 2 sites, One for high end customers and one for

  • 0

I need to run 2 sites, One for high end customers and one for low end customers.

They both pretty much do the same thing but look different. For example they both might have product A, but the price and description (no duplicate content) will be different.

However, for the most part, they will have different products, high end products for the high end site and low end products for the low end site.

It is easier if both sites use the same underlying structure, so the many overlapping parts won’t have to be duplicated. Especially during changes. But it needs to allow for different logic per site when necessary.

So if I point 2 different domains (lets call them highend.com and lowend.com) to the same server. What is the best way to handle this?

Should/Can I determine what domain is being used in the app_controller and specify which layout to use or set a variable to be used by the child controllers? How?

Is there a way I can prefix some fields in the database. For example, if there is a products table and a products.highend_name and a products.lowend_name fields. Then in the code just refer to Product.name but depending on which domain is used, use the correct one. But for overlaping feilds like style_number there is no prefix just products.style_number since its the same either way. Is there a way to set something like this up? How?

Whats the best way to go about doing something like this? Is there a different framework that could handle this better?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T23:51:12+00:00Added an answer on May 19, 2026 at 11:51 pm

    In the controller:

    $host = $_SERVER['SERVER_NAME'];
    if($host=='www.posh.com')
    {
        $this->layout = 'posh';
    }
    elseif($host=='www.cheap.com')
    {
        $this->layout = 'cheap';
    }
    else
    {
        $this->layout = 'default';
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to run two ffmpeg commands, one after the other i.e., wait until
I'm looking to run two sites off one Sitecore install. The first site will
For web sites that run the same application on multiple hostnames, where the hostname
I am new to SQL. I need to run a one-time query at a
We need to be able to run two versions of one ASP.net web application
I have two MVC3 sites, both hosted on the same server that I've configured
I would like to run multiple sites from one FuelPHP installation. The main driver
I have several (old) Drupal-sites that need to be replaced with one single new
I have two sites both using the same yelp api access keys. Is that
I'm writing a basic CMS for one of my sites and have run into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.