WebmastTroy
07-12-2002, 02:36 AM
I have seen sites that have files without extensions. I am writing some Perl scripts, and I am wanting to do this, too. Basically, I want my script to be /script instead of /script.cgi.
I tried doing:
AddHandler cgi-script
in the .htaccess file without an extensions, but that didn't work (500 error).
Any ideas on how to do this? Thanks!
WebmastTroy
07-12-2002, 03:24 AM
Not what I wanted, but it still works.
SetHandler cgi-script
changes the entire directory to make it think that all files are, as in my example, cgi scripts.
mwatkins
07-12-2002, 06:00 AM
afaik you will have to pick between either making an entire directory default to executing files as CGI (such as is done with cgi-bin) or pick by file extension and then they can live anywhere within your public file system.
AddHandler cgi-script .py
for example allows me to sprinkle python cgi files wherever I want. You could just as easily call them phtml or pffht or whatever.
If you really want to hide the details of your implementation, not show any extensions, you'll need to come up with a cunning plan to use mod_rewrite perhaps or just locate them in one directory.
lovelie
07-12-2002, 07:16 AM
Unless you saw those extensionless scripts via FTP/telnet & know for sure they had no extension, I'd think that they'd be index.cgi files in a directory, with /script actually being script/index.cgi.