mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
UPGRADING: Fix rewrite rules
Do not attempt to rewrite "/packages/fo/foo/foo.tar.gz". Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
72b657eb17
commit
fdddd76cbf
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue