Redirecting Subdomain to Directory

Discussion in 'ASP.NET / ASP.NET Core' started by mmWebDev, Dec 22, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi:

    I'm going to be redirecting traffic from a subdomain to a subdirectory (putting SSL into use), and I found the following article on how to accomplish the redirect:

    http://kb.discountasp.net/article.aspx?id=10102

    However, I'm wondering if the code is C# or VB? Or where exactly to place this on the default index.aspx? Is it in the head or body? My apologies if this seems like a very amateur question, I'm just trying to make sure I do it correctly, as I am trying to wrap up a project before the holidays. I'm guessing I just need to make a blank page with that script somewhere?

    Thank you in advance for the help, and happy holidays as well.
     
  2. It would be virtually the same code for aspx. Though the asp version will work identical to aspx version (doesn't matter which language you use, it will still redirect).

    If you are familiar with asp.net you can create an aspx version using the same code pretty easily.

    I would recommend using the asp version, since you can just copy and paste it into an asp page.


    Joel Thoms

    DiscountASP.NET
    http://www.DiscountASP.NET
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page