Commit b2a24dbe authored by Holger Levsen's avatar Holger Levsen
Browse files

reproducible Debian: add apache2 redirects for bullseye

parent 55d0c8c1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -91,19 +91,19 @@ RewriteCond %{REQUEST_URI} ^/(debian/|)index_last_48h.html$ [or]
RewriteCond %{REQUEST_URI} ^/(debian/|)index_all_abc.html$
RewriteRule ^/(debian/|)?(.+) /debian/unstable/amd64/$2 [R=301,L]

# redirect /testing to /buster
# redirect /testing to /bullseye
# note: no flags on the rule, will cause apache to continue after rewriting
#       the url and apply the next rule
Rewritecond %{REQUEST_URI} ^/debian/testing
RewriteRule ^/debian/testing/(.*) /debian/buster/$1
RewriteRule ^/debian/testing/(.*) /debian/bullseye/$1

# redirect /$suite to /$suite/index_suite_amd64_stats.html
# note: the missing slash in the RewriteRule is wanted to avoid a double slash
RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|buster|unstable|experimental)(/|)$
RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|buster|bullseye|unstable|experimental)(/|)$
RewriteRule ^/(debian/|)(.*) /debian/$2/index_suite_amd64_stats.html [R,L]

# redirect /$suite/$arch to $suite/index_suite_$arch_stats.html
RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|buster|unstable|experimental)/(amd64|arm64|armhf|i386)(/|)$
RewriteCond %{REQUEST_URI} ^/(debian/|)(stretch|buster|bullseye|unstable|experimental)/(amd64|arm64|armhf|i386)(/|)$
RewriteRule ^/(debian/|)([a-z0-9]+)/([a-z0-9]+) /debian/$2/index_suite_$3_stats.html [R,L]

# redirect /$arch to /unstable/index_suite_$arch_stats.html