| mike.matz@gmail.com 2004-12-09, 8:48 pm |
| Hello everyone,
I'm having a problem with a mod_rewrite rule that seems to be causing
incorrectly typed URLs to not include a trailing slash (normally I
believe mod_dir automatically redirects from
http://server.com/dir1/dir2 to http://server.com/dir1/dir2/).
My rewrite rule is this:
RewriteRule ^([a-z0-9'_/-]+)$ index.php?path=$1 [NC]
Basically I just want to take any request that doesnt have a dot in it,
and forward to index.php appending the requested path. This is inside
an .htaccess file located at /docroot/dir1/dir2/.htaccess. When I hit
http://server.com/dir1/dir2 I get a 400 Bad Request.
http://server.com/dir1/dir2/ works as expected, as does
http://server.com/dir1/dir2/some/path/here.
I have verified that ServerName is set properly in this VirtualHost
section. Am I doing something wrong here, and/or is there any way to
get further information about the error?
Thanks,
Mike
|