1

Hi I'm using a BlogEngine.net for my blog and I would like to create 5 different subdomains and point to different subfolders(not redirecting). For example:

firstsubdomain.domain.com - domain.com/posts/helloworld.aspx
firstsubdomain2.domain.com - domain.com/posts/helloworld2.aspx
firstsubdomain3.domain.com - domain.com/posts/helloworld3.aspx

Thank you in advance for working example. I'm using asp.net 3.5, C#, Windows Server 2008, IIS 7

Just want to make sure creating additional websites in IIS solution will not work for me.

Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
BorntoWin
  • 21
  • 2

1 Answers1

0

In IIS, create a new website. In the setup wizard, define the host header as your subdomain name (firstsubdomain.com), set the port number and IP address to be used accordingly. In the next step, select the folder you want to be the root folder of the website. If the default content page is going to be something other than one of the standard page names (default.aspx, for instance) then you can set that in the Documents tab of the website.

shamazing
  • 730
  • 4
  • 9
  • but I have different subfolders and urls, how can I map different hostname to different subfolders and urls???? – BorntoWin Nov 26 '10 at 18:00
  • Based on your requirements, I think you may be better served using URL rewriting techniques. But, I'm not sure what the practical application would be to have 200+ subdomains mapped to various folders. – shamazing Nov 26 '10 at 18:06