Link to home
Start Free TrialLog in
Avatar of webmonkey8

asked on

How do I redirect http to https in IIS 6?

I have many websites hosted on my IIS 6 Windows 2003 server and I've just implemented a SSL certificate for one of the websites successfully. The only problem is that when users connect to the "old" site via http, they're getting another website residing on my server.  

Is there a way to:
1) redirect users somehow accessing to easily?
2) fix why users get directed to another website residing in on my server by going to http://myURL to

One more note, the fact that users are receiving another website residing on my server has to do with caching from the proxy server which I cannot resolve.  

Avatar of warturtle
Flag of United Kingdom of Great Britain and Northern Ireland image

Have a look at this:

You must write an error page for HTTP error 403.4 (SSL required) error and that should redirect to http://myURL. That will resolve the issue for you.

oops, i meant that should redirect to

Avatar of webmonkey8


warturtle - thanks for the info.  However, when accessing http, I do not get a 403.4 error, instead, I'm receiving another website residing on my server.  

I'm not too sure why is going to my other site, whereas goes to the right one.  

Is there something in IIS 6 that needs to be changed?  I did notice that in the website that http is going to, the "Advanced Web Site Identification" section, there are 3 "Multiple identities for this Web site":
1) IP address,  TCP port of 80,
2) Default, TCP port of 80,
3) Default, TCP port 80, (empty entry)

If you have an idea of what's going on, I'd appreciate it!  thank you.
thanks, warturtle. However, after reading those articles, I'm still at a loss as to what exactly I need to do in my situation.  As going to goes to another website, instead of a 403.4 error is strange.  
Please advise.  Thanks.

Can you please check your windows hosts file to make sure that there is no duplicate entries or if has the same IP address as This could be causing the problems. It could be that IIS is trying to serve the correct website but the settings within IIS are overriden by the settings within the windows host file. It seems to be a DNS problem, for all I understand. For ex-

This would cause problems and if the website is marked as Default, then it will always redirect users to that if someone types in Let me know, if you see any strange entries within the hosts file.

There are about 15 websites on the IIS and they all have the same IP in the "Multiple identities for this Web site" field.  When going to each site, they go to their respective location.  However, when I implemented a SSL certificate for one of the websites, I start receiving what I have mentioned in my previous posts.  But yes, there are duplicate entries but I'm not too sure if I should delete the duplicate ones as all sites are live.

Also, when I installed another SSL certificate on the 2nd website, it automatically stops the website. When I click on start in IIS manager, it says:

 "IIS was unable to start the site.  Another site may already be using the port you configured for this site.  Please select a unused port for this site".

I'm not too sure what to do here as I already have one website successfully setup in SSL (https), however the "http" is referencing another site.  
Avatar of warturtle
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks warturtle, you have been most helpful!  I'm going to register another IP for my other SSL website.  However, you've mentioned that I can also assign different port numbers, instead.  Do different port number need to be registered as well?
Yes, different port numbers can also be used, they don't need to be registered though. Its just that you have to open that port in your firewall and users will have to use it in the URL as well, for ex - will take you to myurl2 website. Its not recommended for production environments though. More info on the below link:

Always happy to help.
Excellent help from 'warturtle'!