# Error too many redirects after Deleting app/cache Directory

**URL:** <https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439>\
**Category:** Development\
**Created:** [May 8, 2017, 3:18pm UTC](https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439 "2017-05-08T15:18:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![faizan](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@faizan](https://forum.mautic.org/u/faizan)\
**Post date:** [May 8, 2017, 3:18pm UTC](https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439/1 "2017-05-08T15:18:59Z")

</div>

Error too many redirects after Deleting app/cache Directory  
  
  
  
I have changed my mautic to SSL from Configuration by changing URL to https, and Changed Set-Cookie to Force SSL  
  
  
  
Please Help

---

<div class="post-metadata">

**Author:** ![faizan](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@faizan](https://forum.mautic.org/u/faizan)\
**Post date:** [May 8, 2017, 3:18pm UTC](https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439/2 "2017-05-08T15:18:59Z")

</div>

Error too many redirects after Deleting app/cache Directory

I have changed my mautic to SSL from Configuration by changing URL to https, and Changed Set-Cookie to Force SSL

Please Help

---

<div class="post-metadata">

**Author:** ![faizan](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@faizan](https://forum.mautic.org/u/faizan)\
**Post date:** [May 8, 2017, 3:38pm UTC](https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439/3 "2017-05-08T15:38:05Z")

</div>

I am still getting too many redirect after setting this but when i did curl request on my mautic domain it shows this

```auto
<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="refresh" content="1;url=https://m.mydomain.com/" />

        <title>Redirecting to https://m.mydomain.com/</title>
    </head>
    <body>
        Redirecting to <a href="https://m.mydomain.com/">https://m.mydomain.com/</a>.
    </body>
</html>
```

---

<div class="post-metadata">

**Author:** ![faizan](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@faizan](https://forum.mautic.org/u/faizan)\
**Post date:** [May 9, 2017, 5:42am UTC](https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439/4 "2017-05-09T05:42:47Z")

</div>

@escopecz Please help

---

<div class="post-metadata">

**Author:** ![faizan](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@faizan](https://forum.mautic.org/u/faizan)\
**Post date:** [May 9, 2017, 6:32am UTC](https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439/5 "2017-05-09T06:32:45Z")

</div>

Again CURL request i am redirected to

[code]curl [https://m.domain.com/s/login](https://m.domain.com/s/login)

```
    <title>Redirecting to https://m.domain.com/s/login</title>
</head>
<body>
    Redirecting to <a href="https://m.domain.com/s/login">https://m.domain.com/s/login</a>.
</body>

```

[/code]

---

<div class="post-metadata">

**Author:** ![faizan](https://avatars.discourse-cdn.com/v4/letter/f/f0a364/32.png) [@faizan](https://forum.mautic.org/u/faizan)\
**Post date:** [May 9, 2017, 7:14am UTC](https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439/6 "2017-05-09T07:14:59Z")

</div>

@escopecz I am using VestaCP cPanel

---

<div class="post-metadata">

**Author:** ![saturno](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@saturno](https://forum.mautic.org/u/saturno)\
**Post date:** [June 27, 2017, 9:04pm UTC](https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439/7 "2017-06-27T21:04:09Z")

</div>

I’m facing the exact same problem. Everything was running smooth. I deleted the cache folder and it ruined the app. It won’t open and keeps redirecting in a constant loop.

If I test a curl get, I see the same data as yours.

Still looking for a solution.

---

<div class="post-metadata">

**Author:** ![ceefour](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ceefour/32/3629_2.png) [@ceefour](https://forum.mautic.org/u/ceefour)\
**Post date:** [January 17, 2021, 9:41am UTC](https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439/8 "2021-01-17T09:41:36Z")

</div>

My solution : ensure to pass fastcgi\_params HTTPS, see [Installing Mautic in Ubuntu VM - About Lovia](https://about.lovia.life/docs/infrastructure/mautic-engineering/installing-mautic-in-ubuntu-vm/)

```auto
    if ($http_x_forwarded_proto = 'https') {
      set $my_https 'on';
    }
    fastcgi_param HTTPS $my_https; # set $_SERVER['HTTPS']

```

---

<div class="post-metadata">

**Author:** ![bellafronte](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/bellafronte/32/189_2.png) [@bellafronte](https://forum.mautic.org/u/bellafronte)\
**Post date:** [January 25, 2021, 12:13pm UTC](https://forum.mautic.org/t/error-too-many-redirects-after-deleting-app-cache-directory/8439/9 "2021-01-25T12:13:49Z")

</div>

This is more of an apache / nginx / ssl problem than a Mautic problem. Are you using cloudflare?
