Make https friendly

This commit is contained in:
Ryan Liptak 2019-10-04 00:59:37 -07:00
parent fdbb634971
commit 1dd2eb56bc
2 changed files with 3 additions and 2 deletions

View file

@ -11,7 +11,8 @@ else
define( 'FF_IS_LOCAL', false ); define( 'FF_IS_LOCAL', false );
} }
define( 'FF_URI', FF_URI_BASE ); 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_BASE', FF_DOMAIN.FF_URI_BASE );
define( 'FF_HOST', FF_DOMAIN.FF_URI ); define( 'FF_HOST', FF_DOMAIN.FF_URI );

View file

@ -19,7 +19,7 @@ $DB = $config["site_db"];
<!-- Optimized mobile viewport --> <!-- Optimized mobile viewport -->
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <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 href="css/style.css" rel="stylesheet" />
<link rel="alternate" type="application/rss+xml" href="<?=GetLink("rss")?>" /> <link rel="alternate" type="application/rss+xml" href="<?=GetLink("rss")?>" />
</head> </head>