Skip site navigation (1) Skip section navigation (2)

SVN Commit by dpage: r4917 - trunk/www

From: svn(at)pgadmin(dot)org
To: pgadmin-hackers(at)postgresql(dot)org
Subject: SVN Commit by dpage: r4917 - trunk/www
Date: 2006-01-17 15:25:23
Message-ID: 200601171525.k0HFPN7D028026@developer.pgadmin.org (view raw or flat)
Thread:
Lists: pgadmin-hackers
Author: dpage
Date: 2006-01-17 15:25:23 +0000 (Tue, 17 Jan 2006)
New Revision: 4917

Modified:
   trunk/www/.htaccess
Log:
Break out the doc image path rewriting into seperate rules for each image type to avoid some serious wierdness on ferengi.postgresql.org

Modified: trunk/www/.htaccess
===================================================================
--- trunk/www/.htaccess	2006-01-17 15:13:10 UTC (rev 4916)
+++ trunk/www/.htaccess	2006-01-17 15:25:23 UTC (rev 4917)
@@ -1,9 +1,16 @@
 RewriteEngine On
 
-# Rewrite requests for documentation images
-RewriteRule ^docs/dev/(.*)\.(png|jpg|gif)$ /svnrepo/pgadmin3/docs/en_US/$1\.$2 [QSA,L]
-RewriteRule ^docs/1.4/(.*)\.(png|jpg|gif)$ /svnrepo/pgadmin3-1.4/docs/en_US/$1\.$2 [QSA,L]
+# Rewrite requests for documentation images. On developer.pgadmin.org, the following works
+# nicely, but for reasons unknown it's totally borked on ferengi.postgresql.org.
+# RewriteRule ^docs/dev/(.*)\.(png|jpg|gif)$ /svnrepo/pgadmin3/docs/en_US/$1\.$2 [QSA,L]
 
+RewriteRule ^docs/dev/(.*)\.gif$ /svnrepo/pgadmin3/docs/en_US/$1\.gif [QSA,L]
+RewriteRule ^docs/dev/(.*)\.jpg$ /svnrepo/pgadmin3/docs/en_US/$1\.jpg [QSA,L]
+RewriteRule ^docs/dev/(.*)\.png$ /svnrepo/pgadmin3/docs/en_US/$1\.png [QSA,L]
+
+RewriteRule ^docs/1\.4/(.*)\.gif$ /svnrepo/pgadmin3-1\.4/docs/en_US/$1\.gif [QSA,L]
+RewriteRule ^docs/1\.4/(.*)\.jpg$ /svnrepo/pgadmin3-1\.4/docs/en_US/$1\.jpg [QSA,L]
+RewriteRule ^docs/1\.4/(.*)\.png$ /svnrepo/pgadmin3-1\.4/docs/en_US/$1\.png [QSA,L]
+
 # Requests like /docs/xx/yy need to be rewritten to /include/page.php?docset=xx&docpage=yy
 RewriteRule ^docs/(.[a-zA-Z0-9.]*)/(.*)$ /include/page.php?docset=$1&docpage=$2 [QSA,L]
-


pgadmin-hackers by date

Next:From: svnDate: 2006-01-17 15:31:57
Subject: SVN Commit by dpage: r4918 - trunk/www/css
Previous:From: svnDate: 2006-01-17 15:13:10
Subject: SVN Commit by dpage: r4916 - branches/REL-1_4_0_PATCHES/pgadmin3/docs/en_US

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group