IIS Multiple Domain Redirect

Posted by bingles on Stack Overflow See other posts from Stack Overflow or by bingles
Published on 2008-11-08T23:37:31Z Indexed on 2010/05/30 22:52 UTC
Read the original article Hit count: 179

Filed under:

I currently have 2 domain names that I want to setup different websites for. I am currently looking at using some free hosting that works well for my current needs but doesn't give me any way to point "mydomain.com" to the actual site. Instead I have to give users a longer, harder to remember url.

My proposed solution is to point my domains to my home ip and host a small ASP.NET app through IIS consisting of a redirect page that simply redirects to the appropriate site. Is there a way in ASP.NET to recognize which domain url was requested in order to know where to redirect the page to?

© Stack Overflow or respective owner

Related posts about iis