On Sunday 24 February 2008, Federico Tomassini wrote: > how can I redirect systematically the root url "/" ?
(assuming you're using twisted.web, not web2 or nevow)
On the root resource, add a child resource with the empty string as its
name. That child resource will only be rendered for "/", not for anything
deeper in the hierarchy. In the child resource's render() method, issue a
redirect.
Bye,
Maarten
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Twisted-web mailing list [email protected] http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-web
