changeset 150:3ac0be833dde

Rewrite URLs to doc/tip and api/tip directories.
author Martin Geisler <mg@daimi.au.dk>
date Sun, 27 Jul 2008 23:38:18 +0200
parents 0d0cd276f8a6
children fe66ef371c82
files api/.htaccess doc/.htaccess
diffstat 2 files changed, 4 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/api/.htaccess	Sat May 31 22:18:05 2008 +0200
+++ b/api/.htaccess	Sun Jul 27 23:38:18 2008 +0200
@@ -3,11 +3,7 @@
 
 RewriteBase  /api/
 
-# Redirect non-existing files to the latest/*.
+# Redirect non-existing files to the tip/*.
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule !^(latest|[0-9](\.[0-9])*)/.*$  - [chain]
-RewriteRule  ^(.*)$ latest/$1 [redirect=permanent]
-
-# Rewrite latest/* to the actual release number.
-RewriteRule ^latest(.*)$ 0.6$1 [redirect]
+RewriteRule  ^(.*)$ tip/$1
--- a/doc/.htaccess	Sat May 31 22:18:05 2008 +0200
+++ b/doc/.htaccess	Sun Jul 27 23:38:18 2008 +0200
@@ -3,11 +3,7 @@
 
 RewriteBase  /doc/
 
-# Redirect non-existing files to the latest/*.
+# Redirect non-existing files to the tip/*.
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
-RewriteRule !^(latest|[0-9](\.[0-9])*)/.*$  - [chain]
-RewriteRule  ^(.*)$ latest/$1 [redirect=permanent]
-
-# Rewrite latest/* to the actual release number.
-RewriteRule ^latest(.*)$ 0.6$1 [redirect]
+RewriteRule  ^(.*)$ tip/$1