Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a IIS-based website, that needs to have the following redirection enabled:

Root directory accessible through :403 only - which is not a big deal.

But whenever a user enters the site using the standard, unencrypted :80, I need to have him redirected to one of subdirectories within the website. Preferably, I'd like to keep the address displayed to the user the same in both cases (save the http(s)):

h-t-t-p-s:// -> secure content from /

h-t-t-p:// -> not-so-secure content from a subdirectory

Is this kind of redirection possible with IIS? (I know this can be achieved the other way around - that is by forcing secure communication for a subdirectory)


share|improve this question
@Kn43: is the redirect always to the same "non-secure" subdirectory, or can that vary? – MattB Feb 18 '10 at 20:42

With IIS 7.5 and URL Routing module this can be done easily enough. The configuration for it can be a bit tricky but well worth the exersice. We use it for bouncing between servers and sites across our internal network easily enough.

In this case you will create two sites, one which is HTTPS only and another which is only HTTP. Bind both to the same virtual host name and it should run fine. We did something similiar after renaming a site and moving it around.

share|improve this answer
+1 for "interanal network". ;) – phoebus Feb 19 '10 at 1:41

Your Answer


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