Skip to content
Browse files
Properly allow redirects to all variations of update-center*
Fixes INFRA-930
  • Loading branch information
rtyler committed Sep 19, 2016
1 parent ec0476b commit 1f7c95b4b83a2d1f5705a41f73d1908d43028f05
Showing with 2 additions and 2 deletions.
  1. +1 −1 site/
  2. +1 −1 site/static/.htaccess
@@ -71,7 +71,7 @@ for v in ${BASELINES[@]}; do
RewriteCond %{QUERY_STRING} ^.*version=${major}\.(\d+)$ [NC]
RewriteCond %1 <=${minor}
RewriteRule ^update\-center\.[json|html]+ /${major}\.${minor}%{REQUEST_URI}? [NC,L,R=301]
RewriteRule ^update\-center.*\.[json|html]+ /${major}\.${minor}%{REQUEST_URI}? [NC,L,R=301]

@@ -11,7 +11,7 @@ RewriteRule ^update\-center\.[json|html]+ /stable\-%1%{REQUEST_URI}? [NC,L,R=301

# If that all failed, but we have an update center, let's go to current
RewriteRule ^update\-center\.[json|html]+ /current%{REQUEST_URI}? [NC,L,R=301]
RewriteRule ^update\-center.*\.[json|html]+ /current%{REQUEST_URI}? [NC,L,R=301]

# Ensure /release-history.json goes to the right place
RewriteRule ^release\-history\.json+ /current%{REQUEST_URI}? [NC,L,R=301]

0 comments on commit 1f7c95b

Please sign in to comment.