From: Bill Erickson Date: Fri, 25 Oct 2013 03:26:27 +0000 (-0400) Subject: web sfaff : improved apache rewrite handler X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=925023f999df0577110cb72edb7bd4839d139f14;p=evergreen%2Fequinox.git web sfaff : improved apache rewrite handler Signed-off-by: Bill Erickson --- 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]