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 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://some.domain.com/ -> secure content from /

h-t-t-p://some.domain.com/ -> 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

1 Answer 1

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.