-1

I have two questions here about SSL actually. This is my very first time using ssl for website.

1st question: I have recently purchased an ssl for my websites. I have a nice font for my website which is rendering correctly when the site is running on http. But, i'm not sure why the nice font not working after i switched my site to https.

Anything do i need to do to make it work?

2nd question: My website was built with multisite enabled during installation. Now, i have created 3 more website under sub domain. Now, the ssl is activated for my main site and all the sub sites. I would like to ask, how to redirect the main site url to https from http? And, all the sub sites to https from http?

Here goes the nice font coding

@font-face {
  font-family: 'Open Sans Condensed';
  font-style: normal;
  font-weight: 700 !important;
  src: local('Open Sans Condensed Bold'), local('OpenSans-CondensedBold'), url(http://themes.googleusercontent.com/static/fonts/opensanscondensed/v6/gk5FxslNkTTHtojXrkp-xOV5Bi3AvzDkLbMkkmS9JR4.woff) format('woff');
}
  • I believe you should separate your questions. Are you sure you wish to redirect and not actually move? Do the sites currently work fine over https, just existing external links break? – Firsh - LetsWP.io Mar 28 '15 at 11:50
3

Just change the http to https in there:

@font-face {
  font-family: 'Open Sans Condensed';
  font-style: normal;
  font-weight: 700 !important;
  src: local('Open Sans Condensed Bold'), local('OpenSans-CondensedBold'), url(https://themes.googleusercontent.com/static/fonts/opensanscondensed/v6/gk5FxslNkTTHtojXrkp-xOV5Bi3AvzDkLbMkkmS9JR4.woff) format('woff');
}

Google sends them over https too.

  • 1
    stackoverflow.com/questions/18026809/… this sounds like a better solution, just remove the protocol. – Mark Kaplun Mar 28 '15 at 12:57
  • Wasn't sure protocol flexible URLs were allowed or not in CSS. – Firsh - LetsWP.io Mar 28 '15 at 14:18
  • I think they are, a url is url everywhere it is. – Mark Kaplun Mar 28 '15 at 14:37
  • @MarkKaplun, Yes! It worked after i have changed to https from http. Thanks for the answer! :) – Jornes Apr 9 '15 at 15:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.