Signed-off-by: Bill Erickson <berick@esilibrary.com>
Options -MultiViews
PerlSetVar OILSWebStopAtIndex "true"
- # map /eg/staff to /eg/staff/index
- RewriteEngine On
- RewriteCond %{PATH_INFO} =/staff/
- RewriteRule (.*) /eg/staff/index [L,DPI]
-
<IfModule mod_headers.c>
Header append Cache-Control "public"
</IFModule>
Options -MultiViews
PerlSetVar OILSWebStopAtIndex "true"
- # map /eg/staff to /eg/staff/index
- RewriteEngine On
- RewriteCond %{PATH_INFO} =/staff/
- RewriteRule (.*) /eg/staff/index [L,DPI]
-
<IfModule mod_headers.c>
Header append Cache-Control "public"
</IFModule>
# file in the same directory instead.
for my $tpath (@{$ctx->{template_paths}}) {
# replace the final path component with 'index'
- $localpath =~ s|/[^/]+$|/index|;
+ if ($localpath =~ m|/$|) {
+ $localpath .= 'index';
+ } else {
+ $localpath =~ s|/[^/]+$|/index|;
+ }
my $fpath = "$tpath/$localpath.$ext";
$r->log->debug("egweb: looking at possible template $fpath");
if (-r $fpath) {