X-Git-Url: http://git.jankratochvil.net/?a=blobdiff_plain;f=.htaccess;h=26081b887a39b6a928a422a8aa39cd3875bfa426;hb=8fa30dad36a14b7dd673bc1bd3f069f0c19970dd;hp=10557f6480543bdb7904f15e324b95b9d745e0c0;hpb=d7c3742f1954bc09167d48953b7b0cc168c5ec26;p=www.jankratochvil.net.git diff --git a/.htaccess b/.htaccess index 10557f6..26081b8 100644 --- a/.htaccess +++ b/.htaccess @@ -30,6 +30,12 @@ AddType application/x-bzip .bz AddType application/x-bzip2 .bz2 AddType application/zip .zip +# Do not: text/javascript +# as it does not look as registered, at least according to: MIME::Types $VERSION 1.15 +# "application/javascript" so far standardized till 2005-12-08 by: +# http://www.ietf.org/internet-drafts/draft-hoehrmann-script-types-03.txt +AddType application/javascript .js + php_flag short_open_tag off php_flag magic_quotes_gpc off @@ -45,8 +51,10 @@ AddType application/zip .zip RewriteRule ^sw(|/.*)$ http://%{SERVER_NAME}/project$1 [R=301,L] RewriteRule ^projects(|/.*)$ http://%{SERVER_NAME}/project$1 [R=301,L] - RewriteRule ^(.*)[.]html[.]pl(|/.*)$ http://%{SERVER_NAME}/$1.pm$2 [R=301,L] - RewriteRule ^(.*?)/+Index[.]pm$ http://%{SERVER_NAME}/$1/ [R=301,L] + RewriteRule ^favicon[.]ico$ /My/Status.pm?code=404 [P,L] + RewriteRule ^(.*)[.]html[.]pl(|/.*)$ /$1.pm$2 [R=301,L] + RewriteRule ^resume/Resume-JanKratochvil.pm(|/.*)$ /resume/ResumeJanKratochvil.pm$1 [R=301,L] + RewriteRule ^(.*?)/+Index[.]pm$ /$1/ [R=301,L] RewriteCond %{REQUEST_FILENAME}/Index.pm -f # It may be "" for the root directory: RewriteRule ^(|(.*?/)/*)$ http://localhost:7680/$2Index.pm [P,L]