making apache and django add a trailing slash

Posted by user302099 on Stack Overflow See other posts from Stack Overflow or by user302099
Published on 2010-03-25T21:25:37Z Indexed on 2010/03/25 21:53 UTC
Read the original article Hit count: 467

Filed under:
|
|
|
|

Hello.

My /train directory is aliased to a script in httpd.conf by: WSGIScriptAlias /train /some-path/../django.wsgi

And it works well, except for one problem. If a user goes to /train (with no trailing slash) it will not redirect him to /train/, but will just give him the right page. This is a problem because this way the relative links on this page lead to the wrong place when no trailing slash was used to access it.

How can this be worked out?

Thanks.

© Stack Overflow or respective owner

Related posts about trailing

Related posts about slash