Manilo,
Here is a thread on this topic, well a partial thread, start reading
about half way down:
http://groups.google.com/group/pylons-discuss/browse_thread/thread/6888b790239b488b
I found it informative.
--------------------------------------
Randy Syring
RCS Computers & Web Solutions
502-644-4776
http://www.rcs-comp.com
"Whether, then, you eat or drink or
whatever you do, do all to the glory
of God." 1 Cor 10:31
Manlio Perillo wrote:
Hi.
In my WSGI applications I always have an ending slash to the URLs.
This means that an URL without the ending slash will cause the
underlying resource to return 404 Not Found HTTP response.
What is the best method to handle this, using a regex based URL
dispatcher?
I'm planning to add an option to my URL dispatcher to force any URL to
have an ending slash (as an example requesting an HTTP redirect -
either 302 or 301, or by just internally modifying the URL), but I'm
not sure this is the best solution.
Thanks Manlio Perillo
_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe:
http://mail.python.org/mailman/options/web-sig/randy%40rcs-comp.com
_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe:
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com