[Web-SIG] handling URLs with ending slash

Randy Syring randy at rcs-comp.com
Sun Dec 14 19:54:03 CET 2008


Here is a thread on this topic, well a partial thread, start reading 
about half way down:


I found it informative.

Randy Syring
RCS Computers & Web Solutions

"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 at python.org
> Web SIG: http://www.python.org/sigs/web-sig
> Unsubscribe: 
> http://mail.python.org/mailman/options/web-sig/randy%40rcs-comp.com

More information about the Web-SIG mailing list