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/archive%40mail-archive.com

Reply via email to