Fixed references to mod_perl-2.0 resume.
[www.jankratochvil.net.git] / .htaccess
index 77c69b2..cf6cf73 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -21,6 +21,7 @@ AddType "text/plain; charset=us-ascii" .txt
 AddType "text/plain; charset=us-ascii" .asc
 AddType application/x-rpm .rpm
 AddType application/x-nokia-9000-communicator-add-on-software .aos
+AddType application/vnd.symbian.install .sis
 
 RemoveEncoding .gz .Z .bz .bz2 .zip
 AddType application/x-gzip .gz
@@ -47,7 +48,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]
        </IfModule>
 </IfModule>