# Mautic + CloudFlare Flexible SSL

**URL:** <https://forum.mautic.org/t/mautic-cloudflare-flexible-ssl/9864>\
**Category:** Product Support\
**Created:** [November 7, 2017, 9:43pm UTC](https://forum.mautic.org/t/mautic-cloudflare-flexible-ssl/9864 "2017-11-07T21:43:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![borellidesigns](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@borellidesigns](https://forum.mautic.org/u/borellidesigns)\
**Post date:** [November 7, 2017, 9:43pm UTC](https://forum.mautic.org/t/mautic-cloudflare-flexible-ssl/9864/1 "2017-11-07T21:43:34Z")

</div>

Hi All,  
  
I’m new to Mautic but I recently moved a domain DNS over to CloudFlare and am using the Flexible SSL (with free CloudFlare account) to secure the WordPress site. Mautic was originally installed in the /mautic/ subfolder (prior to me working on this site).  
  
  
  
I followed the docs for moving Mautic to another server, updated the local.php file - and specifically within that file I changed the web address from **[http://mysite.com/mautic](http://mysite.com/mautic)** to **[https://www.mysite.com/mautic](https://www.mysite.com/mautic)**, then cleared the cache as specified in the docs.  
  
  
  
When I tested it worked perfectly (tested in browser with SSL exception added to my browser and local DNS pointing to new hosting IP address).  
  
  
  
Now that I’ve switched the nameservers over to CloudFlare, I keep getting an error that says:  
  
  
  
“The page isn’t redirecting properly  
  
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”  
  
  
  
I’m sure this issue is related to the SSL and CloudFlare.  
  
  
  
Can anyone tell me how to properly secure Mautic on a subfolder, using the CloudFlare Flexible SSL?  
  
  
  
Thanks in advance!  
  
Shawn

---

<div class="post-metadata">

**Author:** ![borellidesigns](https://avatars.discourse-cdn.com/v4/letter/b/b5a626/32.png) [@borellidesigns](https://forum.mautic.org/u/borellidesigns)\
**Post date:** [November 7, 2017, 9:43pm UTC](https://forum.mautic.org/t/mautic-cloudflare-flexible-ssl/9864/2 "2017-11-07T21:43:34Z")

</div>

Hi All,  
I’m new to Mautic but I recently moved a domain DNS over to CloudFlare and am using the Flexible SSL (with free CloudFlare account) to secure the WordPress site. Mautic was originally installed in the /mautic/ subfolder (prior to me working on this site).

I followed the docs for moving Mautic to another server, updated the local.php file - and specifically within that file I changed the web address from [http://mysite.com/mautic](http://mysite.com/mautic) to [https://www.mysite.com/mautic](https://www.mysite.com/mautic), then cleared the cache as specified in the docs.

When I tested it worked perfectly (tested in browser with SSL exception added to my browser and local DNS pointing to new hosting IP address).

Now that I’ve switched the nameservers over to CloudFlare, I keep getting an error that says:

“The page isn’t redirecting properly  
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.”

I’m sure this issue is related to the SSL and CloudFlare.

Can anyone tell me how to properly secure Mautic on a subfolder, using the CloudFlare Flexible SSL?

Thanks in advance!  
Shawn

---

<div class="post-metadata">

**Author:** ![shreyansh](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@shreyansh](https://forum.mautic.org/u/shreyansh)\
**Post date:** [November 11, 2017, 7:28pm UTC](https://forum.mautic.org/t/mautic-cloudflare-flexible-ssl/9864/3 "2017-11-11T19:28:42Z")

</div>

That error means that the server is calling itself again and again so the request is a never ending loop.  
Remove flexible SSL and then change dns using cloudflare then using same account add the SSL, it should work.  
If it still doesn’t feel free to contact

Shreyansh Goel  
Freelancer (Mautic and server handler)  
[shreyanshgoel9@gmail.com](mailto:shreyanshgoel9@gmail.com)
