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 922471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:02:12+00:00 2026-05-15T19:02:12+00:00

How to implement a mechanism (within a single ASP.NET MVC application) to ensure that:

  • 0

How to implement a mechanism (within a single ASP.NET MVC application) to ensure that:

  • if request comes on mydomain (user visits mydomain.com) -> handle using certain set of controllers
  • if request comes on otherdomain (user visits otherdomain.com) -> handle using different set of controllers

(the domains are aliased to the same web hosting)

What extension points within ASP.NET MVC should I use to ensure that the described mechanism works?

  • 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-15T19:02:13+00:00Added an answer on May 15, 2026 at 7:02 pm

    I think you could implement a IRouteConstraint descendant that analyzes the current HttpContext and matches (or does not match) a route depending on the domain requested. Then have two different default routes in your Global.asax file, each with different constraints.

    I would still prefer two applications, but it’s your choice of course.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to implement some form of communication mechanism in my application, to send
Assume a single application server instance that has two EARs deployed. The first EAR
I am having a weird issue in ASP.NET MVC with objects not being updated
I have following task: Implement a mechanism that can take any collection of objects
I have an ASP.NET webpage running under IIS that uses a common assembly that
Description: On a C# ASP.Net web application, we have implemented some timers to periodically
I want to implement Find mechanism (like text editors or word) in my JTextPane.
I'm trying to implement the Copy mechanism with Telerik's RadGridView (Silverlight version), but I
I need to implement a throttling mechanism (requests per second) when using HttpWebRequest for
I'm trying to use boost::signal to implement a callback mechanism, and I'm getting a

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.