I have a clean installation of Apache+PHP (latest) on CentOS 8 with no customization on php.ini
nor .htaccess
files. For some reason when I open URLs like:
https://www.example.com/index.php/xxxx/flkjfd.jpg
https://www.example.com/index.php/SLkfjLj/
https://www.example.com/index.php/9kf944.994
They always show the content of the index.php
file located at the root. If I remove that file, than the URLs above show 404 error. How can this happen? I have no directory "index.php"! I have only a file "index.php" with some random string... How can I prevent this?
Isnt this weird? Or is this expected?