I need to config my Apache server that shows the content of a index.xml file like a index.html without the need to put it(index.xml) at the end of the URL like this:
http://localhost/xml/details/13986
instead of
http://localhost/xml/details/13986/index.xml
Currently, if I remove the index.xml from the URL it shows the files list of that folder in the browser and I need to add index.xml to the end of the URL to get the content.
Note: I need this because some old code using this URL without index.xml and I can't change it. For some reason, it doesn't work for me on my computer and I need to add this to the URL to get the content.
Do you have any idea about this config?
Change the configuration in apache2.conf
DirectoryIndex index.html
instead of DirectoryIndex index.php
and restart you apache