Skip to content

Commit

Permalink
Properly allow redirects to all variations of update-center*
Browse files Browse the repository at this point in the history
Fixes INFRA-930
  • Loading branch information
R. Tyler Croy committed Sep 19, 2016
1 parent ec0476b commit 1f7c95b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion site/generate.sh
Expand Up @@ -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]
EOF

done
Expand Down
2 changes: 1 addition & 1 deletion site/static/.htaccess
Expand Up @@ -11,7 +11,7 @@ RewriteRule ^update\-center\.[json|html]+ /stable\-%1%{REQUEST_URI}? [NC,L,R=301
##LEGACY_UPDATECENTERS_TOKEN##

# 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]
Expand Down

0 comments on commit 1f7c95b

Please sign in to comment.