The best way in your case is to make a redirect via your code. Check the requested domain/URL or port, and redirect the user to the appropriate page. The other approach could be to have 2 copies of the site, but it depends on your purpose.
Regards
WindowsHostingASP.NET - My favourite site for Windows and IIS hosting information.
HowtoASP.NET - Free ASP.NET tutorials and source code.
The best way in your case is to make a redirect via your code. Check the requested domain/URL or port, and redirect the user to the appropriate page. The other approach could be to have 2 copies of the site, but it depends on your purpose.
Thank you. Both suggestions are not acceptable. I will check webconfig file as suggested by Rovastar in the other topic.
13 Posts
Default document
Nov 25, 2012 07:08 AM|Igor_Kryltsov|LINK
Hi,
Anybody knows the answer to this question ?
If you do - please post here and I will repost it on the other forum.
Thank you,
Igor
909 Posts
Re: Default document
Nov 25, 2012 12:11 PM|HostingASPNet|LINK
Hello,
It seems as you have received some answers.
The best way in your case is to make a redirect via your code. Check the requested domain/URL or port, and redirect the user to the appropriate page. The other approach could be to have 2 copies of the site, but it depends on your purpose.
Regards
HowtoASP.NET - Free ASP.NET tutorials and source code.
13 Posts
Re: Default document
Nov 25, 2012 04:36 PM|Igor_Kryltsov|LINK
Thank you. Both suggestions are not acceptable. I will check webconfig file as suggested by Rovastar in the other topic.
13 Posts
Re: Default document
Nov 27, 2012 05:10 AM|Igor_Kryltsov|LINK
Answer is here - http://blogs.iis.net/bills/archive/2008/03/22/how-to-add-a-default-document-with-iis7-web-config.aspx
I am surprised it is done this way now with so many layers of GUIs created around IIS.