Using URL Rewriting with the PLT Web Server
==============================================================
Using URL Rewriting with the PLT Web Server
==============================================================
If you want to use url rewriting with the PLT Web Server,
you need to do the following:
add the line:
(require (prefix rewriter: (planet "url-rewriting.scm" ("oesterholt" "url-rewriting.plt" 1 0))))
to the file
web-server-unit.ss
in collection
web-server
of PLT Scheme.
Add the line
(rewriter:gen-dispatcher)
Just between the line:
(sequencer:gen-dispatcher
and the line:
(log:gen-dispatcher ...
resulting in:
(sequencer:gen-dispatcher
(rewriter:gen-dispatcher)
(log:gen-dispatcher ...
...
Provide the file
rewrite-rules.scm
in the same directory where you start the PLT Web Server.
An example of rewrite-rules.scm can be found in the examples
directory of this package.
==============================================================
For more information, see:
==============================================================
http://www.elemental-programming.org/urlrewriting.html
(c) 2007 Hans Oesterholt-Dijkema. License: LGPL.
---
$Id: doc.txt,v 1.2 2007/07/05 14:28:59 hoesterholt Exp $