|Perl Monk, Perl Meditation|
Trailing slash problem with mod_perlby jest (Pilgrim)
|on Sep 28, 2004 at 15:46 UTC||Need Help??|
jest has asked for the
wisdom of the Perl Monks concerning the following question:
This seems like the sort of thing that would be covered in a dozen FAQs, but I can't seem to find it anywhere, and Googling has yielded nothing relevant.
I have an app running under mod_perl, with my own handler. The relevant block in my httpd.conf is:
When I go to this app at http://localhost/foo/, it works fine, likewise for anything under this, such as http://localhost/foo/action/?id=23, the path-parsing etc. being handled in my app. My only problem is that http://localhost/foo, without the trailing slash, goes nowhere; it doesn't even get to my app.
The only thing I want to do is have the slash-less URI go to the slash-ful URI; I want http://localhost/foo to reach http://localhost/foo/. I don't care about anything underneath, I'm picking that up fine. But I don't know how to do this. All the Alias-type directives seem intended to map URIs to filesystem locations, and I don't have a filesystem location, I have something dynamically generated by my handler.
What's the obvious thing I need to do here?