How to gracefully go from https: to http: pages

I want to make my form pages display as https: with SSL. I can make that happen with no issues.

To avoid the IE "Only secure content is displayed" every link on the page needs to be https: instead of http:

However, my form thank you pages and the rest of the site display as http:

So my question is once you are in https: how do you gracefully leave it?

I found something about doing IIS rewrites to redirect all the pages I don't want in https back to http but I have a lot of pages. There has to be a better way.
LVL 2
EndeavorToPersevereAsked:
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.

WebDevEMCommented:
Hi,

I haven't done an SSL site in ages, so there may be other ways I'm not thinking of... but I wrote an article here on EE about avoiding the mixed security errors that you may find helpful.  Take a look at the section titled "A sneaky trick" which shows how to have resources like images, CSS and javascript that will load with the same protocol as the page is.  That way you can have a page either https or http and not trigger the warning.

Also, I'm not sure that your assumption of every link on the https page needs to be https.  If I'm right, only the images, css, js etc are involved - not outbound links in an <A HREF=___>  Assuming I'm not mistaken in this, you could just have the https form redirect to an http page when it's finished.  The mixed mode error should only apply to the contents of the https form page.

(If you find that I'm mistaken, please let me know... I'd need up update my article!)

I hope this helps!

WebDevEM
0

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
GaryCommented:
If I am reading it correctly you are trying to do a form post from https to http?
Submit your form to a https page that does any processing (db, email etc) and then do a redirect to the http version of a page that says Thank you.
0
EndeavorToPersevereAuthor Commented:
You were right. I didn't need to do the outbound links. That saved me a huge headache. It turned out I had two javascripts that needed fixed. The IE developer tools told me which ones to fix and my pages are working now.

Thanks!
0
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
SSL / HTTPS

From novice to tech pro — start learning today.