From 1a6974c6537c2ee026a4506ab2c037bdf0402d76 Mon Sep 17 00:00:00 2001 From: Stefan Kaltenbrunner Date: Tue, 7 Dec 2010 13:46:56 +0000 Subject: [PATCH] redirect licence to license(or the other way around) - people love to type stuff it seems and most of the mossed the invention of the great human interface device called a "mouse"... git-svn-id: file:///Users/dpage/pgweb/svn-repo/trunk@2776 8f5c7a92-453e-0410-a47f-ad33c8a6b003 --- portal/.htaccess | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/portal/.htaccess b/portal/.htaccess index 34601d33..f906d6d4 100644 --- a/portal/.htaccess +++ b/portal/.htaccess @@ -3,7 +3,7 @@ AddDefaultCharset utf-8 # Pear modules -php_value include_path "/usr/local/www/portal.postgresql.org/pear/lib:." +php_value include_path "/usr/share/php:/usr/local/www/portal.postgresql.org/pear/lib:." # Fire up mod_rewrite @@ -24,7 +24,7 @@ RewriteRule ^redir/([0-9]+)/(h|f)/(.*)$ /system/redir2.php?mirror=$1&type=$2&fil RewriteRule ^(.*)\.rss\.([a-z-]+)$ /system/rss.php?page=$1&lang=$2 [QSA,L] RewriteRule ^(.*)\.rss$ /system/rss.php?page=$1 [QSA,L] -# Rewrite access to community docs attacahed files +# Rewrite access to community docs attached files RewriteRule ^communityfiles/(.*)$ /system/communityfiles.php?page=$1 [QSA,L] # Rewrite request to the software catalog @@ -36,5 +36,8 @@ RewriteRule ^(.*)\.html\.([a-zA-Z_-]+)$ /system/handler.php?page=$1&lang=$2 [QSA # exclude server-status so that it can be used for monitoring RewriteCond %{REQUEST_URI} !^/server-status +# people like typing urls manually - so redirect licence to license +RewriteRule ^about/license$ /about/licence [QSA,L] + # Use handler.php for everything RewriteRule ^(.*)$ /system/handler.php?page=$1 [QSA,L] -- 2.39.5