IIS 8.5 with https

HI All,

We have site on iis 8.5 on windows 2012 R2.  Site is binding with both http and https.
Is there any way we can bind default to https:
eg: if user types www.google.com it has to take default to https://www.google.com
Who is Participating?
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.

Ram BalachandranCommented:
Hi ,

There are multiple ways you can select binding protocol 'https' as deafult.
Please refer :http://www.iis.net/configreference/system.applicationhost/sites/sitedefaults/bindings
It has all steps required and is useful website for IIS related information


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
romeiovasuAuthor Commented:
this shows only for 7.0 i am looking for 8.5 and all i want is
if some one type www.google.com it should to default by https://www.google.com
Ram BalachandranCommented:
Remove the HTTP binding from your site (leave HTTPS in place)

Add another site

Make sure that the new site has HTTP binding

Configure HTTP Redirect as shown:
Dan McFaddenSystems EngineerCommented:
I would recommend using the URL Rewrite feature and not the HTTP Redirect feature.

You can save the following to your website's web.config:

	<rule name="Redirect HTTP to HTTPS" stopProcessing="true">
		<match url="(.*)" />
			<add input="{HTTPS}" pattern="^OFF$" />
		<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />

Open in new window

This is a pretty common process.

It has been answered several times on EE:  
link:  http://www.experts-exchange.com/Software/Server_Software/Microsoft_Server_Applications/Q_27994095.html

If you are more comfortable in the IIS Manager GUI.  Here is an article that goes thru the steps:

link:  http://www.jppinto.com/2010/03/automatically-redirect-http-requests-to-https-on-iis7-using-url-rewrite-2-0/

URL Rewrite is pretty much the same since IIS7.  Both the code and the GUI references above will work with IIS7, IIS7.5, IIS8 and IIS8.5

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
HTTP Protocol

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.