redirect licence to license(or the other way around) - people love to type stuff...
authorStefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Tue, 7 Dec 2010 13:46:56 +0000 (13:46 +0000)
committerStefan Kaltenbrunner <stefan@kaltenbrunner.cc>
Tue, 7 Dec 2010 13:46:56 +0000 (13:46 +0000)
git-svn-id: file:///Users/dpage/pgweb/svn-repo/trunk@2776 8f5c7a92-453e-0410-a47f-ad33c8a6b003

portal/.htaccess

index 34601d33c3fba17846ff4248a1ca42bbb5ec3266..f906d6d4f44cf95e342a86541ab531663a43cd29 100644 (file)
@@ -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]