Subdomain Redirect code

Discussion in 'ASP.NET 2.0' started by stahrdesign, May 23, 2006.

  1. Bruce

    Bruce DiscountASP.NET Staff

    There's no easy way to do this.

    You'll have to rewrite the URL which requires quite a bit of hardcore development work.

    Bruce

    DiscountASP.NET
    www.DiscountASP.NET
     
  2. One quick-and-dirty way to get the effect you are looking for, is to use the Server.Transfer() function instead of the Response.Redirect() function.

    Server.Transfer() does a 'behind the scenes' redirect so the user sees the final page, without the URL changing to reflect the redirect.

    So the KB article you referenced would look like:

     
  3. Thank you both for your quick responses. I will try the Server.Transfer(). I am trying to set up client demo areas. Each client would have their own unique url that is easy to remember clientname.myurl.com etc. It isn't the end of the world that the folder shows. I guess i am just being too anal about it.


    Thanks for your help,
    Becky
     

Share This Page