Your software
My Mautic version is: 5.0.4
My PHP version is: 8.1.28
My Database type and version is: 10.11.8-MariaDB-0ubuntu0.24.04.1
Your problem
My problem is:
I established the based URL for my website as https://mysite.com but when I got to a landing page, it’s URL is http://mysite.com:443/landing instead of https://mysite.com/landing and this seems to be preventing forms from being sent…
I tested it on my Mautic instance, and both the landing pages and the Mautic instance itself are using HTTPS. In your Mautic configuration, under System Settings, does the “Site URL” field include HTTPS?
Additionally, within the System Configuration, under “Additional Response Headers,” you can enable Strict Transport Security and see if that resolves the issue for you.
Another option, for example, is in cPanel, where you can force HTTPS. This could also help fix the problem.
Ok, so something must have had to do with the cache. I cleared it and now I’m falling into an infinite redirect loop
Just checked the nginx configuration, removed the http->https redirect, reloaded and the problem continues… something must be wrong inside mautic config… any idea?
Well, it seems I got my solution from this thread, I just had to add $_SERVER['HTTPS'] = 'on' at the beginning of index.php and both problems got solved in one shot