I have an ASP.NET 4.0 website (mysite.com) and will be adding new functionality to the project at mysite.com/talk. The kicker is I need the /talk sub-directory to be accessed and utilized using talk.mysite.com as the url. How can I do this in .net or IIS 6.0?
I have an ASP.NET 4.0 website (mysite.com) and will be adding new functionality to
Share
There are several options here.
talk.mysite.comand rewrite it tomysite.com/talk.talk.mysite.com.Application_BeginRequesthandler to global.asax, and redirect if Request.Url.Host istalk.mysite.com.The best one depends on the details of your scenario. I think #1 is probably the easiest (most straightforward), but one of the others might be a better fit in some cases.