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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:43:34+00:00 2026-06-16T06:43:34+00:00

First of all, we are using MVC 3, ASP.NET 4.0 and Visual Studio 2010.

  • 0

First of all, we are using MVC 3, ASP.NET 4.0 and Visual Studio 2010.

Our goal is to open up our brand new web site to an open beta. We want to redirect a slowly increasing percentage of our traffic to our new site while the rest of our traffic goes to our existing site…

We were hoping to do this via a load balancer, but this is no longer an option due to resources, infrastructure and time. Right now it seems our only option is to do it via software.

Has anyone here done this? Do you have a good strategy or solution?

We will have two different URLS and we can use cookies to achieve this if needed.

  • 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-06-16T06:43:35+00:00Added an answer on June 16, 2026 at 6:43 am

    It’s fairly simple and would be done the same way user’s are redirected to mobile site.
    Implement Application_PreRequestHandlerExecute in global.asax.cs

    If they fit whatever criteria you decide, Response.Redirect them. I’d store a cookie on whomever is going to stay on one site or the next so they dont erroneously get redirected while in the middle of viewing the non-beta site. This also doesn’t handle the case of people not using cookies.

    This is pseudo code, so it may not be 100% correct

    
    protected void Application_PreRequestHandlerExecute(object sender, EventArgs
    e)
    {
    
    if(Request.Cookies["BetaResult"] == null)
    {
       var  cookie = new HttpCookie("BetaResult");
       cookie.Expires = DateTime.Now.AddDays(1d);
       if(whatever logic to redirect to beta)
       {
           cookie["BetaResult"] = "Beta";
           Response.Cookies.Add(cookie);
           Response.Redirect("your beta site");
       }
       else
       {
           cookie["BetaResult"] = "Main";
           Response.Cookies.Add(cookie);
       }
    
    }
    else
    {
      //if cookie value is beta, redirect to beta site, they 'are a chosen one'
    }  
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

First of all, I'm using Visual Studio 2010 (Visual C#) and ASP.NET. I'm working
We’ve created an ASP.NET MVC 4.0 (Beta) web site with Visual Studio 2010. The
First of all, I am new to ASP.Net MVC 3, and I am also
I'm creating a multi-tenant Asp.Net MVC 3 Web app, and using EF4.1 code first
I've now completed my first web application using ASP.NET MVC and overall, I still
I am currently using ASP.NET MVC and Entity Framework Code First using the repository
new to asp.net mvc (using v3 + razor) and am wondering how to best
I'm looking at creating my first ASP.NET MVC application using MVC3. The project template
I'm using MVC ASP.NET 3.5 and I'm trying to delete a folder with all
I am doing my first project in ASP.NET MVC and using the NerdDinner sample

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.