From 642fef99289565d0831b46e39dd712f7ceb5beea Mon Sep 17 00:00:00 2001 From: falkTX Date: Thu, 23 Jul 2015 14:41:41 +0200 Subject: [PATCH] Fix download of debs that don't have "+" --- pool/free/.htaccess | 6 ++++++ pool/non-free/.htaccess | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/pool/free/.htaccess b/pool/free/.htaccess index 673a7ce..e29ab7c 100644 --- a/pool/free/.htaccess +++ b/pool/free/.htaccess @@ -1,6 +1,12 @@ Options -Indexes RewriteEngine On + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_URI} !\+ +RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1 [R=301,L,QSA] + RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\+(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1\.$2 [R=301,L,QSA] diff --git a/pool/non-free/.htaccess b/pool/non-free/.htaccess index 673a7ce..e29ab7c 100644 --- a/pool/non-free/.htaccess +++ b/pool/non-free/.htaccess @@ -1,6 +1,12 @@ Options -Indexes RewriteEngine On + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_URI} !\+ +RewriteRule ^(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1 [R=301,L,QSA] + RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)\+(.*)$ https://github.com/KXStudio/Repository/releases/download/initial/$1\.$2 [R=301,L,QSA]