Given the circumstances, I believe it’s caused by the use of the "Multiviews"
example:
Options Indexes FollowSymLinks MultiViews
If you don’t want to use it, just remove it
Options Indexes FollowSymLinks
If "redirect" is not caused by "Multiviews", it is probably some url rewriting rule (mod_rewrite).
There are other possibilities, but I find it difficult that it is something outside of these two hypotheses.
off:
Sorry to comment, but I did not understand the term "defect" in the comments above.
Is that a term used in Portugal?
In online dictionaries, from Portuguese of Portugal, this word has the same meaning as Portuguese of Brazil.
Anyway, the correct word would be "default" (default).
[updating]
A more appropriate title for this topic would be "Apache interpreting a directory as a. php or . html file".
Friends, thank you so much the problem was exactly the
Multiviews
. Using the editor nano(English) I ran the following command to edit the settings:sudo nano /etc/apache2/sites-available/default
. I removed theMultivire
from the configuration node and after apache reboot the subject has been solved.– Iago Leão