IIS REDIRECTION - SBS 2008 HTTP TO HTTPS

Someone familiar with the redirection process using an html file? as opposed to the IIS7 redirection configuration options.

so for example any request to http://remote.sampledomain.com GOES TO http://remote.sampledomain.com/index.html WHICH REDIRECTS TO https://remote.sampledomain.com ...
whocaresaboutitAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Cliff GaliherCommented:
The redirection example you gave cannot be done via HTML. The reason being is that HTML neither knows nor cares which protocol requested it. It is just a text file. Even HTML headers are unaware. The redirection example you gave is not changing the file being requested, it is changing the protocol. Thus the redirection msut occur before the file is sent. The platform that sends the file (IIS) must know that know that the protocol is http and change it to https.

If you don't restrict the redirection to ONLY occur if the request is http (which cannot be done via HTML), then you have an infinite loop situation. http request gets redirected to https. Browser reinitiates the reuqest using https. page says redirect to https (even though it already is), browser reinitiates the request using https....and on and on.

No, this type of redirection must be done elsewhere in IIS.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
SBS

From novice to tech pro — start learning today.