Adding SSL to a website

dmwynne
dmwynne used Ask the Experts™
on
I have a website say mysite.com.

There is a section for clients to login mysite.com/clients.

I want that section to be secured using an ssl certificate.

I buy an ssl certificate for mysite.com and add it to the server.

I want to users to still be able to access mysite.com using http but be forced to use https if they browser to mysite.com/clients.  The website is running IIS 7.5.

Is there an easy way to do this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Go to the ssl settings for that directory on your site and check "require ssl"

Step by step details following.
Run inetmgr

expand the computer node
Expand the site
Click on the folder you want to secure


Click on SSL settings in the center pane

Check the require ssl box and continue from there

then run from a command prompt


iisreset /noforce

Author

Commented:
Any coding need to be changed on the site?  When I make this change and a user goes to http://mysite.com/clients are they redirect to https://mysite.com/clients automatically or do I need to do that on IIS?
If you want to redirect them, you can do a URL rewrite
Here is a video on how to accomplish that:
https://www.youtube.com/watch?v=U7USHit5mhY

the change above simply denies access unless you are requesting the page with https

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial