From 925023f999df0577110cb72edb7bd4839d139f14 Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Thu, 24 Oct 2013 23:26:27 -0400 Subject: [PATCH] web sfaff : improved apache rewrite handler Signed-off-by: Bill Erickson --- Open-ILS/examples/apache/eg_vhost.conf.in | 6 +++--- Open-ILS/examples/apache_24/eg_vhost.conf.in | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Open-ILS/examples/apache/eg_vhost.conf.in b/Open-ILS/examples/apache/eg_vhost.conf.in index c39c981591..872489f6e4 100644 --- a/Open-ILS/examples/apache/eg_vhost.conf.in +++ b/Open-ILS/examples/apache/eg_vhost.conf.in @@ -795,9 +795,9 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT] # is redirected to the index. This allows us to # map multiple routes to the same application. RewriteEngine On - RewriteCond %{REQUEST_URI} !t_* - RewriteCond %{REQUEST_URI} !index - RewriteRule (.*) /eg/staff/index [L,DPI] + RewriteCond %{PATH_INFO} !/staff/index + RewriteCond %{PATH_INFO} !/staff/t_* + RewriteRule .* /eg/staff/index [L,DPI] # Uncomment the following to force SSL for everything. Note that this defeats caching diff --git a/Open-ILS/examples/apache_24/eg_vhost.conf.in b/Open-ILS/examples/apache_24/eg_vhost.conf.in index 8d70ab319e..d4ea089e3e 100644 --- a/Open-ILS/examples/apache_24/eg_vhost.conf.in +++ b/Open-ILS/examples/apache_24/eg_vhost.conf.in @@ -807,9 +807,9 @@ RewriteRule ^/openurl$ ${openurl:%1} [NE,PT] # is redirected to the index. This allows us to # map multiple routes to the same application. RewriteEngine On - RewriteCond %{REQUEST_URI} !t_* - RewriteCond %{REQUEST_URI} !index - RewriteRule (.*) /eg/staff/index [L,DPI] + RewriteCond %{PATH_INFO} !/staff/index + RewriteCond %{PATH_INFO} !/staff/t_* + RewriteRule .* /eg/staff/index [L,DPI] -- 2.11.0