mod_rewrite help 2004-09-14 - By Matthew M. Boedicker
Hello,
I am having a mod_rewrite issue that I can't solve. I tried enabling logging but it won't work with my ISP for some reason.
This is the rule I am using.
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*[^/]) $1.php [L]
When I pass it "view/foo" it gives an internal server error. View is not a directory, so the first condition is true. view/foo.php does not exist, so I would expect the second condition to fail but it passes. view.php does exist. Does mod_rewrite pass each part of the URL through the rules separately? I want to make this rule fail for "view/" following by any string.
Thanks.
-- Matthew M. Boedicker http://mboedick.org
--------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@(protected) " from the digest: users-digest-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|