Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have two websites deployed in IIS 7.5 Express. The first website is the PRODUCTION website and the second is the TEST website. In the PRODUCTION website, I added an HTTPS binding and Require SSL so it is normal that it will force to redirect from HTTP to HTTPS. In the TEST website, I didn't add HTTPS binding and the Require SSL is disabled, but I wonder why it still forces to redirect from HTTP to HTTPS. Any idea why this happens?

By the way, the PRODUCTION site uses the main domain (www.maindomain.com) and the TEST site uses only sub-domain (test.maindomain.com).

I don't want the sub-domain to only use HTTP, not HTTPS.

share|improve this question

1 Answer 1

I think it's either of these two:

  1. You have used a permanent redirect. The browser caches these redirects and does not ask the server again
  2. IIS uses HSTS. The browser remebers that you page should only use HTTPS and switches always.

For both cases, clearing the browser cache should fix the problem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.