[aur-dev] [PATCH] UPGRADING: Fix rewrite rules
Do not attempt to rewrite "/packages/fo/foo/foo.tar.gz". Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> --- UPGRADING | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UPGRADING b/UPGRADING index dad4adf..c0866e5 100644 --- a/UPGRADING +++ b/UPGRADING @@ -28,13 +28,13 @@ container or optionally create a ".htaccess" file in the upload directory): ---- RewriteEngine on -RewriteRule ^/packages/([^/]{1,2})([^/]*/(PKGBUILD|.*\.tar\.gz|))$ /packages/$1/$1$2 +RewriteRule ^/packages/([^/]{1,2})([^/]*/(PKGBUILD|[^/]*\.tar\.gz|))$ /packages/$1/$1$2 ---- The following equivalent rule can be used for lighttpd setups: ---- -url.rewrite-once = ( "^/packages/([^/]{1,2})([^/]*/(PKGBUILD|.*\.tar\.gz|))$" => "/packages/$1/$1$2" ) +url.rewrite-once = ( "^/packages/([^/]{1,2})([^/]*/(PKGBUILD|[^/]*\.tar\.gz|))$" => "/packages/$1/$1$2" ) ---- If you use a non-standard URL_DIR, slight modifications might be necessary. -- 1.7.6
participants (1)
-
Lukas Fleischer