# 2.14 redirecting mtc.js to insecure/non-ssl?

**URL:** https://forum.mautic.org/t/2-14-redirecting-mtc-js-to-insecure-non-ssl/10672
**Category:** Product Support
**Created:** [August 2, 2018, 8:33pm UTC](https://forum.mautic.org/t/2-14-redirecting-mtc-js-to-insecure-non-ssl/10672 "2018-08-02T20:33:22Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![andjules](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/andjules/32/342_2.png) [@andjules](https://forum.mautic.org/u/andjules)
#### Post date: [August 2, 2018, 8:33pm UTC](https://forum.mautic.org/t/2-14-redirecting-mtc-js-to-insecure-non-ssl/10672/1 "2018-08-02T20:33:22Z")

</div>

I recently updated to 2.14  
I’m noticing that my mautic script is throwing mixed content/insecure warnings and is calling `http://mautic.example.com/mtc.js` even though:

- the original page is at [https://example.com](https://example.com)
- the mautic script calls **https** ://mautic.example.com **/index.php** /mtc.js
- both sites have valid letsencrypt SSL certs
- Mautic’s Site URL is set to https://
- I have deleted app/cache/prod
- I am not using a CDN or advanced cache

Side notes:

- I’m running mautic in a [Cloudways.com](http://Cloudways.com) managed app on a DigitalOcean droplet. I do notice that after upgrades I need to reset file permissions
- Mautic \> System Info \> Error log throws a couple of minor-looking Doctriney errors about `AbstractProxyFactory.php` but everything seems to be working
- I see that in ~line 75 of mtc.js there is a call to [mautic.example.com/mtc](http://mautic.example.com/mtc) (no `/index.php/`); I figure it’s either that line (which uses `(l.protocol==‘https:’?‘https:’:‘https:’)`) or some kind of app routing is going wrong
- I’m pretty sure this started with 2.14, but not 100% (hadn’t examined my Mautic scripts for a little bit prior to updating)

You can test at:  
[https://fundzen.com/mautic\_GTM\_test.html](https://fundzen.com/mautic_GTM_test.html)  
(mautic mtc.js is at [https://demo.fundzen.com/index.php/mtc.js](https://demo.fundzen.com/index.php/mtc.js))

---

<div class="post-metadata">

### Author: ![silavapi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/silavapi/32/7424_2.png) [@silavapi](https://forum.mautic.org/u/silavapi)
#### Post date: [October 17, 2019, 4:33pm UTC](https://forum.mautic.org/t/2-14-redirecting-mtc-js-to-insecure-non-ssl/10672/2 "2019-10-17T16:33:28Z")

</div>


