From 9005ffed5d8236d5102d1f2b9f4b401e66981b2e Mon Sep 17 00:00:00 2001 From: HW42 Date: Sat, 29 Aug 2015 17:08:31 +0200 Subject: fix reproducible-builds.org/{howto,spec} redirects don't redirects /howto and /specs and anything below before for example the following links were wrongly redirected: https://reproducible-builds.org/howto (without /) https://reproducible-builds.org/specs (without /) https://reproducible-builds.org/specs/source-date-epoch-spec/ --- hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hosts/jenkins') diff --git a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net index af07ca90..4042eac7 100644 --- a/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net +++ b/hosts/jenkins/etc/apache2/sites-available/jenkins.debian.net @@ -299,8 +299,8 @@ Use common-debian-service-https-redirect reproducible-builds.org # redirects reproducible-builds.org to https://reproducible.debian.net except for /specs/ and /howto/ RewriteCond %{HTTP_HOST} reproducible-builds\.org - RewriteCond %{REQUEST_URI} !^/specs/$ - RewriteCond %{REQUEST_URI} !^/howto/$ + RewriteCond %{REQUEST_URI} !^/specs($|/) + RewriteCond %{REQUEST_URI} !^/howto($|/) RewriteRule ^/?(.*) https://reproducible.debian.net/$1 [R=301,L] -- cgit v1.2.3-70-g09d2