Skip to content
Permalink
Browse files

Make https friendly

  • Loading branch information...
squeek502 committed Oct 4, 2019
1 parent fdbb634 commit 1dd2eb56bcf2daae753d4f9dc66bcbe12d5bf425
Showing with 3 additions and 2 deletions.
  1. +2 −1 config.example.php
  2. +1 −1 index.php
@@ -11,7 +11,8 @@
define( 'FF_IS_LOCAL', false );
}
define( 'FF_URI', FF_URI_BASE );
define( 'FF_DOMAIN', "http://".$_SERVER["SERVER_NAME"] );
$isHTTPS = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on';
define( 'FF_DOMAIN', ($isHTTPS ? "https" : "http")."://".$_SERVER["SERVER_NAME"] );
define( 'FF_HOST_BASE', FF_DOMAIN.FF_URI_BASE );
define( 'FF_HOST', FF_DOMAIN.FF_URI );
@@ -19,7 +19,7 @@
<!-- Optimized mobile viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<link href='http://fonts.googleapis.com/css?family=Cabin:400,500,600,700' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Cabin:400,500,600,700' rel='stylesheet' type='text/css'>
<link href="css/style.css" rel="stylesheet" />
<link rel="alternate" type="application/rss+xml" href="<?=GetLink("rss")?>" />
</head>

0 comments on commit 1dd2eb5

Please sign in to comment.
You can’t perform that action at this time.