While doing a remote session with client on setting up a webserver for a web app made with Real Studio with Amazon EC2, we got a question: Can we remove the name.cgi easily from the URL?
So which URL is better?
Next you edit the .htaccess file.
First you need to add "-Indexes" to the options on top. And you need to add this to the file on bottom:
<Files ~ "^$">The first change will disable normal directory indexes and second change allows the default file to be accessed.
allow from all
If you do everything correct, you can remove name.cgi from the URL and enjoy a little bit shorter URL.