Webrick URIs to autosearch extension sequence (eg. html, htm, pdf) Howto?

R

Ralph Amissah

Question: how to configure webrick to autoload various file extensions where
the file extension is not provided, eg. search html, htm, pdf in that order
so you would provide the uri without an extension?

So far am down to filehandlers, or playing with the bit in webrick that
generates the 404

Not Found
`/test' not found.
WEBrick/1.3.1 (Ruby/1.8.1/2004-01-21) at localhost:2000

Step by step guide would be very nice

or possibly a feature request for webrick to make this easy to do (if it
is not already)

see:
"Hypertext Style: Cool URIs don't change" by Tim Berners Lee
http://www.w3.org/Provider/Style/URI.html



Ralph Amissah
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top