See the Mailing Lists Page for how to subscribe and unsubscribe.
eprints_tech messages
Please note: this page shows emails that have been sent to the eprints_tech mailing list. Some of these may be spam emails we have failed to filter.
[EP-tech] Rewrite problem
From: "Laszlo Csirmaz" <csirmaz AT ceu.hu>
Date: Mon, 29 Jun 2009 13:56:04 +0200
http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech *** EPrints community wiki - http://wiki.eprints.org/ Hi, in perl_lib/EPrints/Apache/Rewrite.pm, line 219 the incoming URI is checked whether is ends with a slash, and if yes, the filename index.html is added automatically. Unfortunately, it is NOT checked whether the URI is a directory (without trailing slash). Thus I suggest to include the following: # apache 2 does not automatically look for index.html so we have to do ↵ it ourselves my $localpath = $uri; if( $uri =~ m#/$# ) { $localpath.="index.html"; } ##CSL check if $uri is a directory!! elsif( -d $repository->get_conf( "htdocs_path" ↵ )."/".$lang.$uri ) { $localpath.="/index.html"; } $r->filename( $repository->get_conf( "htdocs_path" ↵ )."/".$lang.$localpath ); if( $uri =~ m#^/view(.*)# ) It cases quite a bit problem when visiting the "browse/subject" ↵ directory; the browse list is regenerated, no matter what. Best, Laszlo
[index] [prev] [next] [options] [help]




