From: short <> Date: Wed, 28 Sep 2005 03:23:56 +0000 (+0000) Subject: Fixed rewriting rules for directory indexes. X-Git-Url: http://git.jankratochvil.net/?p=www.jankratochvil.net.git;a=commitdiff_plain;h=3551b73fe9ca720fcc41707b4d73696efd02506c;ds=sidebyside Fixed rewriting rules for directory indexes. --- diff --git a/.htaccess b/.htaccess index 77c69b2..aceb5e9 100644 --- a/.htaccess +++ b/.htaccess @@ -47,7 +47,8 @@ AddType application/zip .zip RewriteRule ^(.*)[.]html[.]pl$ http://%{SERVER_NAME}/$1.pm [R=301,L] RewriteRule ^(.*?)/+Index[.]pm$ http://%{SERVER_NAME}/$1/ [R=301,L] RewriteCond %{REQUEST_FILENAME}/Index.pm -f - RewriteRule ^(.*?)/+$ http://localhost:7680/$1/Index.pm [P,L] + # It may be "" for the root directory: + RewriteRule ^(|(.*?/)/*)$ http://localhost:7680/$2Index.pm [P,L] RewriteRule ^(.*[.]pm)$ http://localhost:7680/$1 [P,L]