# What htaccess or Security.php settings do you need to force HTTPS?

**URL:** <https://forum.mautic.org/t/what-htaccess-or-security-php-settings-do-you-need-to-force-https/1822>\
**Category:** Product Support\
**Created:** [May 12, 2015, 11:02am UTC](https://forum.mautic.org/t/what-htaccess-or-security-php-settings-do-you-need-to-force-https/1822 "2015-05-12T11:02:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wbuist](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wbuist/32/21_2.png) [@wbuist](https://forum.mautic.org/u/wbuist)\
**Post date:** [May 12, 2015, 11:02am UTC](https://forum.mautic.org/t/what-htaccess-or-security-php-settings-do-you-need-to-force-https/1822/1 "2015-05-12T11:02:20Z")

</div>

I’ve been trying to set up Mautic in a secure environment and I’m either getting a non secure (Http) load - or ‘Too many redirects’  
  
  
  
What changes are needed ot .htaccess or Security.php in /config to do this?

---

<div class="post-metadata">

**Author:** ![wbuist](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/wbuist/32/21_2.png) [@wbuist](https://forum.mautic.org/u/wbuist)\
**Post date:** [May 12, 2015, 11:02am UTC](https://forum.mautic.org/t/what-htaccess-or-security-php-settings-do-you-need-to-force-https/1822/2 "2015-05-12T11:02:20Z")

</div>

I’ve been trying to set up Mautic in a secure environment and I’m either getting a non secure (Http) load - or ‘Too many redirects’

What changes are needed ot .htaccess or Security.php in /config to do this?

---

<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:** [February 2, 2020, 10:59pm UTC](https://forum.mautic.org/t/what-htaccess-or-security-php-settings-do-you-need-to-force-https/1822/3 "2020-02-02T22:59:59Z")

</div>


