SSL Certificate making my page appear in HTML?

Sly

I don't break the rules I bend them.
Oct 28, 2016
246
38
after forcing my website to from retrorank.com
it has changed the view and coding of it. HostGator staff said this after forcing my to https://
before putting a SSL Certificate everything looked fine now its displaying in html format

“Thank you for your patience, the site is now configured to load over https only, you’ll still need to configure the content and url calls to load the content over https instead of http as well though. You can use this site to view all the url and content calls that need their url paths updated. whynopadlock.com If you are not sure on how to perform this change, you would need to contact a developer to assist you in updating those url calls.” what does this mean can anyone help me?

please check this image for more info about the error
 

Ecko

23:37 [autobots] -!- eckostylez [[email protected]]
Nov 25, 2012
1,398
962
Mixed Content: The page at ' ' was loaded over HTTPS, but requested an insecure stylesheet ' '. This request has been blocked; the content must be served over HTTPS.
retrorank.com/:10 Mixed Content: The page at ' ' was loaded over HTTPS, but requested an insecure stylesheet ' '. This request has been blocked; the content must be served over HTTPS.
retrorank.com/:11 Mixed Content: The page at ' ' was loaded over HTTPS, but requested an insecure stylesheet ' '. This request has been blocked; the content must be served over HTTPS.
retrorank.com/:1 Mixed Content: The page at ' ' was loaded over HTTPS, but requested an insecure script ' '. This request has been blocked; the content must be served over HTTPS.
retrorank.com/:1 Mixed Content: The page at ' ' was loaded over HTTPS, but requested an insecure script ' '. This request has been blocked; the content must be served over HTTPS.
retrorank.com/:1 Mixed Content: The page at ' ' was loaded over HTTPS, but requested an insecure script ' '. This request has been blocked; the content must be served over HTTPS.
retrorank.com/:1 Mixed Content: The page at ' ' was loaded over HTTPS, but requested an insecure script ' '. This request has been blocked; the content must be served over HTTPS.

this is why you use relative paths
 

Ecko

23:37 [autobots] -!- eckostylez [[email protected]]
Nov 25, 2012
1,398
962
I don't know how this can get any clearer:
Mixed Content: The page at ' ' was loaded over HTTPS, but requested an insecure stylesheet ' '. This request has been blocked; the content must be served over HTTPS.

You need to use https when calling these files in the code.
 

Kodys

lmao
Oct 24, 2016
36
17
I don't know how this can get any clearer:


You need to use https when calling these files in the code.
As @eckostylez clearly said but sorta dumbed down.. the page loads over HTTPS while the files are trying to load over HTTP, website doesn't wanna use any insecure files so change the links in your head tags. In the spoiler help it clearly shows what you've done wrong although I'd try fixing it yourself first if you're going to own a website, read the logs you get.
890243c02a074ce1bd4e75d4f0a62deb.png
 

Sly

I don't break the rules I bend them.
Oct 28, 2016
246
38
As @eckostylez clearly said but sorta dumbed down.. the page loads over HTTPS while the files are trying to load over HTTP, website doesn't wanna use any insecure files so change the links in your head tags. In the spoiler help it clearly shows what you've done wrong although I'd try fixing it yourself first if you're going to own a website, read the logs you get.
I've been looking through all my within filezilla, I still cant find the .php edit file with the http:// to change it

:/
 

Sly

I don't break the rules I bend them.
Oct 28, 2016
246
38
Go to your index.php page and where the head html tags are change the links as shown in the image
These are the only codes in my index.php
<?php
include 'core/init.php';
include 'template/overall_header.php';

if(isset($_GET['page'])) {
$_GET['page'] = htmlspecialchars($_GET['page'], ENT_QUOTES);
$pages = glob("pages/" . "*.php");
$pages = preg_replace("(pages/|.php)", "", $pages);

if(in_array($_GET['page'], $pages)) {
include 'pages/'.$_GET['page'].'.php';
} else {
include 'pages/notfound.php';
}
} else {
include 'pages/home.php';
}

include 'template/overall_footer.php';
include 'core/deinit.php';
?>
 

Sly

I don't break the rules I bend them.
Oct 28, 2016
246
38
It says it right there,

Go into your template folder and check overall_header.php and see if that's where they're located, if not check core/init.php

None either, here whats in my head.php

<head>
<title><?php echo $page_title; ?></title>
<base href="<?php echo $settings->url; ?>">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<?php
if(!empty($settings->meta_description) && (!isset($_GET['page']) || (isset($_GET['page']) && $_GET['page'] != 'category')))
echo '<meta name="description" content="' . $settings->meta_description . '" />';
elseif(isset($_GET['page']) && $_GET['page'] == 'category' && !empty($category->description))
echo '<meta name="description" content="' . $category->description . '" />';
?>

<link href="template/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="template/css/custom.css" rel="stylesheet" media="screen">
<link href="template/css/font-awesome.min.css" rel="stylesheet" media="screen">

<script src="template/js/jquery.js"></script>
<script src="template/js/bootstrap.min.js"></script>
<script src="template/js/timeago.js"></script>
<script src="template/js/functions.js"></script>
<link href="template/images/favicon.ico" rel="shortcut icon" />
<?php if(!empty($settings->analytics_code)) { ?>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//

ga('create', '<?php echo $settings->analytics_code; ?>', 'auto');
ga('send', 'pageview');

</script>
<?php } ?>
</head>
 

Kodys

lmao
Oct 24, 2016
36
17
<link href="template/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="template/css/custom.css" rel="stylesheet" media="screen">
<link href="template/css/font-awesome.min.css" rel="stylesheet" media="screen">

<script src="template/js/jquery.js"></script>
<script src="template/js/bootstrap.min.js"></script>
<script src="template/js/timeago.js"></script>
<script src="template/js/functions.js"></script>
<link href="template/images/favicon.ico" rel="shortcut icon" />
As said in the screenshot I gave you place, infront of them, after the src="
 

RastaLulz

fight teh power
Staff member
May 3, 2010
3,934
3,933
Since I'm feeling nice, I'll answer your question with the correct answer.

I assume that you're using CloudFlare's free SSL, meaning that you don't actually have a secure connection from your server to CloudFlare, and only from the client to CloudFlare. If you did what I told you before ("var_dump($_SERVER);"), you'd have noticed that "HTTPS" was not set to "on". Since you aren't actually serving your files over HTTPS, you must fake it like so:
PHP:
<?php

$_SERVER['HTTPS'] = 'on';

This is a much better option than hard coding the URL's.
 

Sly

I don't break the rules I bend them.
Oct 28, 2016
246
38
Since I'm feeling nice, I'll answer your question with the correct answer.

I assume that you're using CloudFlare's free SSL, meaning that you don't actually have a secure connection from your server to CloudFlare, and only from the client to CloudFlare. If you did what I told you before ("var_dump($_SERVER);"), you'd have noticed that "HTTPS" was not set to "on". Since you aren't actually serving your files over HTTPS, you must fake it like so:
PHP:
<?php

$_SERVER['HTTPS'] = 'on';

This is a much better option than hard coding the URL's.
Thankyou an alternative, option but its sorted now =]
 

Users who are viewing this thread

Top