Camen Design Forum

http and https?

append delete k2bsolutions

what is different from the HTTP and HTTPS?

Reply RSS

Replies

append delete #1. Yanae

The security protocol.

append delete #2. Kroc

HTTPS is encrypted, meaning that nobody can read the information going between you and the end-server (in theory).

append delete #3. cruft

I just switched my forum over to HTTPS and am having trouble with the fonts working properly now. I'm substituting the forum's default fonts with Google fonts using this:

%
<link href='http://fonts.googleapis.com/css?family=News+Cycle:400,700|Oswald' rel='stylesheet' type='text/css'>
%

It works with HTTP but not with HTTPS now.

---

First I went into `config.php' and changed the following: (false to true)

%
@define ('FORUM_HTTPS',         true);
%

That didn't work. Fonts still not loading.

Then in `start.php` I tried to change this (to no avail):

%
//the full URL of the site is dependent on HTTPS configuration, so we wait until now to define it
define ('FORUM_URL', 'https'.                                    //base URL to produce hyperlinks throughout:
        (FORUM_HTTPS || @$_SERVER['HTTPS'] == 'on' ? 's' : ''). //- if HTTPS is enforced, links in RSS will use it
        '://'.$_SERVER['HTTP_HOST']
);
%

Any thoughts?

:: @cruft added on 27 Jun ’15 · 14:32

It's as simple as changing HTTP to HTTPS in the following:

%
<link href='https://fonts.googleapis.com/css?family=News+Cycle:400,700|Oswald' rel='stylesheet' type='text/css'>
%

cheers

append delete #4. Martijn

Another trick is to link such external resources with a protocol-relative URL, starting with `//`: http://www.paulirish.com/2010/the-protocol-relative-url/

append delete #5. tmyusuf

Thank you for this.

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn