Hello,<br><br>I have a server that hosts quite a few sites. If I type "sitename.com" to get to one of the sites (for any of my sites), it always takes me to the first site listed in IIS. If I type www.sitename.com, then it will take me to correct site. So if I don't type in "WWW" with the url, I always get sent to the wrong site.<br><br>How to fix? Thanks!!!<br>Danny <br><br><img border="0" src="/forum/emoticons/freaked.gif" height="30" width="18" alt="freaked" />
Make sure you are adding in the correct host header information for the virtual server. You can have multiple host headers for each virtual you run.<p><hr size="1" width="50%" align="left" />dotNetBB Forum Developer<br><b><i>Building A Better Community, One Post At A Time</i></b><br><a href="http://www.dotnetbb.com" target="_blank">www.dotnetbb.com</a></p>
Was this answer helpful ?
Yes No
Actually, they are not virtual directories. They are "sites" within IIS. But we will double check the host header info.<br><br>Thanks!
Was this answer helpful ?
Yes No
Ok, I added another header. One header was "www.sitename.com". Then I added "sitename.com". This took care of it. <br><br>However, when you go to "cnn.com", the url in the url bar changes to "www.cnn.com". They must be redirecting...<br><br>Thanks,<br>Danny
Was this answer helpful ?
Yes No
Yes, you can define a virtual server as a redirector to another URL. That's probably what they did.<p><hr size="1" width="50%" align="left" />dotNetBB Forum Developer<br><b><i>Building A Better Community, One Post At A Time</i></b><br><a href="http://www.dotnetbb.com" target="_blank">www.dotnetbb.com</a></p>
Was this answer helpful ?
Yes No
Using just host-headers only is another effective way of blocking nimda, code red types of worms. Most of those requests use IP based requests and if a website doesn't accept an IP based <br><br>http://www.iis-resources.com/modules/news/article.php?storyid=21request it won't get to your site. However, SSL requires IP.<p><hr size="1" width="50%" align="left" />*----------------------------------------*<br>* Steve Schofield<br>* steve@aspfree.com<br>*<br>* Microsoft MVP - ASP.NET<br>* http://www.aspfree.com<br>* <br>*----------------------------------------*</p>
Was this answer helpful ?
Yes No