I have created a new file .htaccess in the folder htdocs.
The file contains only:
AcceptPathInfo On
Options +MultiViews
But this does not appear to have any effect.
Apparently some hosting companies do not permit these settings.
Are this settings allowed by infinityfree.
I know that Options is enabled and works perfectly fine. Reading what AcceptPathInfo does, I would have thought that it would be enabled to.
I also know from experience that using Options +MultiViews disables file extensions, and when that happens, so long as you don’t include the file extension in the URL, pathinfo works perfectly fine. I use this feature many times in the way I just explained.