[aur-dev] [PATCH 2/2] UPGRADING: Add note on backward compatible package URLs

Lukas Fleischer archlinux at cryptocrack.de
Wed Aug 10 10:00:20 EDT 2011


Signed-off-by: Lukas Fleischer <archlinux at cryptocrack.de>
---
 UPGRADING |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/UPGRADING b/UPGRADING
index 331870e..4aa05ab 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -22,6 +22,17 @@ ALTER TABLE PackageDepends ADD INDEX (DepName);
 6. Run the upload directory transform script ("scripts/uploadbuckets.sh") and
 rotate the converted directory structure into place.
 
+7. If you want to provide backward compatible package URLs, enable mod_rewrite
+and add the following to your Apache configuration (inside the "VirtualHost"
+container or optionally create a ".htaccess" file in the upload directory):
+
+----
+RewriteEngine on
+RewriteRule /packages/([^/]{2})([^/]*(/[^/]*)?)$ /packages/$1/$1$2
+----
+
+If you use a non-standard URL_DIR, slight modifications might be necessary.
+
 From 1.8.1 to 1.8.2
 -------------------
 
-- 
1.7.6



More information about the aur-dev mailing list