The website does not load SSL version?

Hi

 

I have a website running on Dolphin last version.

I have SSL installed.

When I type https://website.com it is ok:  the ssl page works, all content load perfectly

The problem is when I type  website.com , www.website.com , because the website does not redirects automatically to the SSL version and some content is not loading.

Any solution? 

 

Thank you

https://RomaniaOnline.club
Quote · 20 Sep 2016

There are a number of ways, but the way i do it is the following.

Edit inc/header.inc.php

Look for this code.

//check correct hostname
$aUrl = parse_url( $site['url'] );
if ( isset($_SERVER['HTTP_HOST']) and 0 != strcasecmp($_SERVER['HTTP_HOST'], $aUrl['host']) and 0 != strcasecmp($_SERVER['HTTP_HOST'], $aUrl['host'] . ':80') ) {
    header( "Location:{$aUrl['scheme']}://{$aUrl['host']}{$_SERVER['REQUEST_URI']}", true, 301 );
    exit;
}

Insert This directly under it.

if($_SERVER['SERVER_PORT'] == 80) {
    header( "Location:{$aUrl['scheme']}://{$aUrl['host']}{$_SERVER['REQUEST_URI']}", true, 301 );
    exit;
}

https://www.deanbassett.com
Quote · 20 Sep 2016

This code is causing a 404 error using 7.3.3

I fixed the issue. I didn't have my full ssl certificate installed 

Quote · 27 May 2017
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.