# Too many redirect with version 5.2.1

**URL:** <https://forum.mautic.org/t/too-many-redirect-with-version-5-2-1/35479>\
**Category:** Product Support\
**Created:** [April 8, 2025, 2:59pm UTC](https://forum.mautic.org/t/too-many-redirect-with-version-5-2-1/35479 "2025-04-08T14:59:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hlassiege](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/hlassiege/32/13734_2.png) [@hlassiege](https://forum.mautic.org/u/hlassiege)\
**Post date:** [April 8, 2025, 2:59pm UTC](https://forum.mautic.org/t/too-many-redirect-with-version-5-2-1/35479/1 "2025-04-08T14:59:47Z")

</div>

**Your software**  
My Mautic version is: 5.2.1  
My PHP version is: 8.1.31  
My Database type and version is: mysql 8.0.41  
Installation though coolify

**Your problem**  
My problem is: Too many redirect when accessing the website

I tried to update the url (site\_url in local.php)

then, I had a lot of too many redirect. I removed the cache and restarted.

I’ve reverted to the url in local.php but the problem remains.

I have indeed an endless loop

```auto

curl -I -L https:// ***.***.com/

HTTP/2 301

**date** : Tue, 08 Apr 2025 14:53:39 GMT

**content-type** : text/html; charset=utf-8

**location** : https:// ***.****.com/

**alt-svc** : h3=":443"; ma=86400

**cache-control** : max-age=0, must-revalidate, private

**expires** : Tue, 08 Apr 2025 14:53:39 GMT

**server** : cloudflare

**x-powered-by** : PHP/8.1.32

**cf-cache-status** : DYNAMIC

**cf-ray** : 92d2986eaa95eb8d-NRT

HTTP/2 301

**date** : Tue, 08 Apr 2025 14:53:40 GMT

**content-type** : text/html; charset=utf-8

**location** : https:// ****.****.com/

**alt-svc** : h3=":443"; ma=86400

**cache-control** : max-age=0, must-revalidate, private

**expires** : Tue, 08 Apr 2025 14:53:40 GMT

**x-powered-by** : PHP/8.1.32

**cf-cache-status** : DYNAMIC

**report-to** : {"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v4?s=CuzKFKavmYQx5HJb7Ecb4gr07OB7T0Jx8y8mHLcKUICAf0JYg0HsLf%2BqHRo%2BK6ZfGdQexqnlkIfnqr%2Fl6gaqHE0c4RsxGQ7nZVSfNbTpbZfVxq%2FAdCuItszMX5r9K5sFyCkeQnQ%3D"}],"group":"cf-nel","max_age":604800}

**nel** : {"success_fraction":0,"report_to":"cf-nel","max_age":604800}

**server** : cloudflare

**cf-ray** : 92d2987439aeeb8d-NRT

**server-timing** : cfL4;desc="?proto=TCP&rtt=9740&min_rtt=7371&rtt_var=3132&sent=9&recv=12&lost=0&retrans=0&sent_bytes=3144&recv_bytes=615&delivery_rate=570614&cwnd=252&unsent_bytes=0&cid=bab74744903b138b&ts=1207&x=0"

```

---

<div class="post-metadata">

**Author:** ![marcoh](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/marcoh/32/14574_2.png) [@marcoh](https://forum.mautic.org/u/marcoh)\
**Post date:** [April 8, 2025, 3:03pm UTC](https://forum.mautic.org/t/too-many-redirect-with-version-5-2-1/35479/2 "2025-04-08T15:03:25Z")

</div>

did you clear the cache?  
Run this PHP command: **php /var/www/html/bin/console cache:clear**.
