Home: Perl Programming Help: Intermediate:
How do I make it appear without showing the name of the perl script?



wojtek
Deleted

Jun 6, 2000, 4:25 PM


Views: 2101
How do I make it appear without showing the name of the perl script?

Ok, someone tell me how can I do this:

for example:
this is the url of the script http://www.blah.com/x.pl?view=index

I want it to look like this http://www.blah.com/?view=index


dws
Deleted

Jun 6, 2000, 9:09 PM


Views: 2101
Re: How do I make it appear without showing the name of the perl script?

Web servers are configured with a set of default filenames to look for when a request specifies a directory (i.e., ends in "/"). The usual defaults include "index.html" (or "default.htm" on some Microsoft servers). Your web server may include "index.cgi" in this list. If so, rename x.pl to index.cgi.

If you're using Apache, find the DirectoryIndex directive in apache.conf for the list of defaults that Apache will look for.


Cure
User

Jun 15, 2000, 9:56 AM


Views: 2101
Re: How do I make it appear without showing the name of the perl script?

hi wojtek

In your http.conf file look for this line DirectoryIndex index.html and add this line right below it
DirectoryIndex index.cgi


Cure