If you installed AlgoSphere with an http:// URL and have since obtained an SSL certificate, follow these steps to switch to https:// without losing any data or settings.

Step 1 — Verify Your SSL Certificate

Before changing any settings, ensure your SSL certificate is correctly installed. Test it by visiting https://yourdomain.com in a browser — if you see a padlock, you're ready to proceed.

Step 2 — Update config.php

Open application/config/config.php via FTP or cPanel File Manager and change:

$config['base_url'] = 'http://yourdomain.com/';

to:

$config['base_url'] = 'https://yourdomain.com/';

Step 3 — Update the Database

Some settings are stored with the full URL in the database. Run this SQL in phpMyAdmin:

UPDATE tblsettings 
SET value = REPLACE(value, 'http://yourdomain.com/', 'https://yourdomain.com/');

Step 4 — Force HTTPS via .htaccess

To automatically redirect all HTTP traffic to HTTPS, add the following to your .htaccess file before the existing AlgoSphere rewrite rules:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Step 5 — Update the Cron Job URL

If your cron job command uses http://, update it to https:// as well:

wget -q -O- https://yourdomain.com/cron/index

Step 6 — Test Everything

  • Log in to AlgoSphere via the new HTTPS URL
  • Check that the company logo and images load correctly (no mixed-content warnings)
  • Send a test email from Setup → Settings → Email
  • Verify the cron job still fires correctly
Tip

Use your browser's developer tools (F12 → Console) to check for any mixed-content warnings after switching to HTTPS.