How can I set up HTTPS on my site?

I found the following thread https://www.boonex.com/forums/topic/HTTPS-how-easy-to-setup-.htm on the subject but found it slightly confusing with no really clear and decisive method of achieving this.

 

Is there a Boonex recommended method of making our sites compliant with this standard? Is there one clear document on how to do this? 

 

Boonex obviously think it is important enough as they have applied this to their own site https://www.boonex.com/ so their must be a way of doing this to our sites if we feel it also to be necessary.

Quote · 11 Aug 2016

I'm runing with the latest version 7.3.2 and I've just gone to HTTPS. Here's how I did it.

 

1. Get your certificate installed on your server. Ask your host for help if you're stuggling.

2. Open \inc\header.inc.php

3. Change your $site['url'] = "http://mysite.com/"; to $site['url'] = "https://mysite.com/";

4. Underneath it add the following:

if ((! isset($_SERVER['HTTPS']) or $_SERVER['HTTPS'] == 'off') and isset($_SERVER['HTTP_HOST'])){
$redirect_url = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
header("Location: $redirect_url");
exit();
}

5. Clear your cache in the Admin Panel (Tool....Cache)

6. Clear your web browser cache.

 

That should be it!

Now the site will always be https eben if they come in on http and the cron job will keep running.

 

Good luck!

Quote · 11 Aug 2016

If you are running Nginx, there are some differences; there are help files on the interweb for running https on Nginx. 

Geeks, making the world a better place
Quote · 11 Aug 2016

it is super simple - just change site url to https in header.inc.php - than add this to your .htaccess file:

 

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

 

then clear your caches

caredesign.net
Quote · 11 Aug 2016

Thank you so much everyone for your advice. Much appreciated.

 

@ProfessorSr - I am assuming your advice is after having a certificate installed on my server as Custheyder recommended?

Quote · 11 Aug 2016

yes - adding certificate to server can be done a few different ways. since i use letsencrypt - free ssl - installation are different - and i do not use a cpanel.

 

thats why i did not put how to add certificate to server.

caredesign.net
Quote · 11 Aug 2016

Great. Thank you.

Certificate is being sorted now.

Quote · 11 Aug 2016
 
 
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.