How to default all links(Reports/Dashlets) in SuiteCRM to start with HTTPS?


I’m using SuiteCRM ver 7.11.15 on Chrome ver 86 browser and Windows 10 OS
Further, I’m using Hostinger’s webserver, purchased & installed SSL certificate and have forced HTTPS on webserver.
I’ve also reviewed other forum topics and didn’t find any solution.

I’ve faced an issue in particular while opening links in Reports module and Dashlets.

Some links open in HTTPS and some in HTTP. (Kindly refer screenshots)

HTTPS links open perfectly as they are in the same session.
While HTTP links bring CRM back to the login page and doesn’t proceed thereafter.

How to default all links to HTTPS ?
What are the steps for achieving it ?
Has anyone faced the same issue ?

Please find screenshots for your reference:

Check these two entries in your config.php:

  • host_name
  • site_url

Try using the .htaaccess file in the CRM folder - worked for me. Something like this (using your example)

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^index.php$ [R,L]