@mad Thanks for the explanation! Now I got that.
Actually, there are no redirections, I also switched off the .htaccess
in the root, which was mainly for ETags and caching, and the HTTP > HTTPS redirection in the hosting panel – just in case – but nothing changed. I also contacted the hosting support asking for what's going on. Let's see what they answer, though I don't have any trust in their knowledge: I already told them about the issue and they thought that was normal for ORIG_PATH_INFO
to have the relative path 🙄
Anyway, I temporarily solved the issue by tweaking the core code a bit – not ideal, I know, but that's the only workaround I was able to achieve. Basically, I changed line 9 of Request.php
like this:
} elseif (isset($_SERVER['ORIG_PATH_INFO']) && ($_SERVER['ORIG_PATH_INFO'] != $_SERVER['SCRIPT_NAME'])) {
and now it works as expected: https://www.pietrogregorini.com/test/