[Web-SIG] handling URLs with ending slash
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.
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:
> 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
> 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
More information about the Web-SIG