[hunchentoot-devel] How to use redirect

Hans Hübner hans.huebner at gmail.com
Thu May 12 05:31:49 UTC 2011


On Thu, May 12, 2011 at 6:58 AM, Colin <ge.xinying at gmail.com> wrote:
> I want to use 301 to redirect the request, but I don't know how to do.
> e.g.:
> Some one visit my app: http://www.xxxx.com, I want it redirect it to xxx.com
> I thinks I should use function redirect, but I don't know how.

Please have a look at the documentation and at the file
test/test-handlers.lisp, which contains an example of how the
HUNCHENTOOT:REDIRECT function is used.

-Hans




More information about the Tbnl-devel mailing list