Here is the "other way". IN the bottom on ost-config.php add these lines:/* CUSTOM CODE START */// https://sebtombs.com/computing/web-design-publishing/osticket/44-force-ssl-in-osticket-without-htaccess-changes.html// If page requires SSL (forced true here), and we're not in SSL mode,// redirect to the SSL version of the page// only add this if running via web page, eg not if called from cronif(php_sapi_name()=="apache2handler") { if($_SERVER != 443) { header("HTTP/1.1 301 Moved Permanently"); header("Location: https://".$_SERVER.$_SERVER); exit(); } }/* CUSTOM CODE END */this now only forces https when its being served by apache, not when its called by cron on the local PC (in which case it would return "cli". Not tested. Use at your own risk. YMMV etc.