I was programming a Web app and I noticed that always insert address of Web app, I had to type "www.mywebapp.com/index.php" to show up a web page. If I just type the next address "www.mywebapp.com", the Web server (Apache) list the directories and some files.
I would rather type "www.mywebapp.com" and same time the Web server show up the index.php. But how can I do that? Just follow the next steps:
- Open notepad and write the next statement "DirectoryIndex index.php"
- Save file as
- Write name of file as ".htaccess"
- Change type of file from " Text file (*.txt)" to "All files (*.*)"