|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
||||
|
||||
|
Enter a url without WWW leads me to the same site
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" />
|
|
#2
|
|||
|
|||
|
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>
|
|
#3
|
||||
|
||||
|
Actually, they are not virtual directories. They are "sites" within IIS. But we will double check the host header info.<br><br>Thanks!
|
|
#4
|
||||
|
||||
|
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
|
|
#5
|
|||
|
|||
|
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>
|
|
#6
|
|||
|
|||
|
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>
|
![]() |
| Viewing: ASP Free Forums > System Administration > Microsoft IIS > Enter a url without WWW leads me to the same site |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
![]() |
|