Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Software Development
Programming
Programming Q&A
SSL Certificate making my page appear in HTML?
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="RastaLulz" data-source="post: 389029" data-attributes="member: 1"><p>Since I'm feeling nice, I'll answer your question with the correct answer.</p><p></p><p>I assume that you're using CloudFlare's free SSL, meaning that you don't actually have a secure connection from your server to CloudFlare, and only from the client to CloudFlare. If you did what I told you before ("var_dump($_SERVER);"), you'd have noticed that "HTTPS" was not set to "on". Since you aren't actually serving your files over HTTPS, you must fake it like so:</p><p>[PHP]<?php</p><p></p><p>$_SERVER['HTTPS'] = 'on';[/PHP]</p><p></p><p>This is a much better option than hard coding the URL's.</p></blockquote><p></p>
[QUOTE="RastaLulz, post: 389029, member: 1"] Since I'm feeling nice, I'll answer your question with the correct answer. I assume that you're using CloudFlare's free SSL, meaning that you don't actually have a secure connection from your server to CloudFlare, and only from the client to CloudFlare. If you did what I told you before ("var_dump($_SERVER);"), you'd have noticed that "HTTPS" was not set to "on". Since you aren't actually serving your files over HTTPS, you must fake it like so: [PHP]<?php $_SERVER['HTTPS'] = 'on';[/PHP] This is a much better option than hard coding the URL's. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Software Development
Programming
Programming Q&A
SSL Certificate making my page appear in HTML?
Top