John Buckman wrote:
> I wanted to have a a default filename extension feature in aolserver,
> where http://localhost/foo fetches foo.adp, so that URLs in a web site
> don't need to show the .adp on every url.
> 
> I read in the archives that openacs has this feature via a filter
> written in tcl, but I wanted the implementation to be fast, minimal and
> relatively transparent, so I wrote my own patch.
> 
> What my code does is change a page fetch internally from:
> 
> http://localhost/foo
> to
> http://localhost/foo.adp
> 
> This .adp appending only occurs on URLs that have don't have an existing
> filename extension on them.  Note that this patch also works correctly
> with directories that have a period in them.

Disregarding all the other objections, note that the ability to have a
robots.txt.adp, or similar "doubly extended" files, can come in quite
handy. I use it to tell the bots that only the main hostname of my
server should be indexed.

-- 
Nis Jorgensen                    Jabber: [EMAIL PROTECTED]
GPI ICT Application Developer    Yahoo: nizzjorgensen
+31 20 718 2087                  ICQ:9005019


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to