Avatar of dmwynne
dmwynne
Flag for United States of America asked on

Adding SSL to a website

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?
Microsoft IIS Web ServerWeb ServersWeb Development

Avatar of undefined
Last Comment
becraig

8/22/2022 - Mon
becraig

Go to the ssl settings for that directory on your site and check "require ssl"

Step by step details following.
becraig

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
dmwynne

ASKER
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?
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
becraig

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question