what is different from the HTTP and HTTPS?
what is different from the HTTP and HTTPS?
The security protocol.
HTTPS is encrypted, meaning that nobody can read the information going between you and the end-server (in theory).
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?
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
Another trick is to link such external resources with a protocol-relative URL, starting with `//`
: http://www.paulirish.com/2010/the-protocol-relative-url/
Thank you for this.
Your friendly neighbourhood moderators: Kroc, Impressed, Martijn