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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T07:39:55+00:00 2026-05-15T07:39:55+00:00

I want to create an asp.net white-label site http://whitelabel.com , that could be styled

  • 0

I want to create an asp.net white-label site http://whitelabel.com, that could be styled for each of our clients according to their specific needs. So for example, client abc would see the site in their corporate colours and be accessed through their specific url http://abc.com. Likewise client xyz would see the site in their own styling and url http://xyz.com.

Typing either url, in effect, takes the user to http://whitelabel.com where the styling is applied, and the client’s url structure is retained.

I was thinking of URL rewriting using URLRewriter.Net (http://urlrewriter.net/), or similar, mapping the incoming address to a client id and applying the theme accordingly. So, a url rewrite rule may be something like


<rewrite url="http//abc.com/(.+)" to="~/$1?id=1" />


<rewrite url="http//xyz.com/(.+)" to="~/$1?id=2" />

I could then read the id, map it to the client, and with a bit of jiggery-pokery, apply the correct theme.

I was wondering if:

  1. this is the right approach ?
  2. I’ve overlooked something ?
  3. there is a better way to do this ?

Any suggestions would be appreciated.

  • 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-15T07:39:57+00:00Added an answer on May 15, 2026 at 7:39 am

    You can have multiple domains all running off the same iis site, each with a different themes. You don’t even need to rewrite the url.

    We point different domains all to the same site using host headers, then we check the host name …

    HttpContext.Current.Request.Url.Host
    

    … in the OnPreInit event in our base page class. Based on the host name we set the page theme, which has all the css and custom images set in the App_Themes

    Link to information on setting themes programmatically:
    http://msdn.microsoft.com/en-us/library/tx35bd89.aspx?PHPSESSID=8415f84585668e69ce791db4abfd0c45

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

Sidebar

Related Questions

I want to create a zip extractor for plugins that I create for asp.net
I want to create a web service in ASP.NET that fetches data from a
I want to create a simple CMS for my asp.net-mvc site. Will I save
ASP.Net 3.5 I want to create a user control that contains the ListView and
I want to create the membership tables online that are used for ASP.Net 3.5
I want to create a custom asp.net mvc3 helper . To use that helper,
I'm writing an ASP.NET MVC site that includes the possibility for users to create
I want to create a report viewer in ASP.NET that presents to the users
I want to create an ASP.NET web site. I have not been using ASP.NET
okay...im really puzzled with this. I want to create a regular asp.net webforms website

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.