Skip to content

Commit

Permalink
Revert "Fixed up regular expression match"
Browse files Browse the repository at this point in the history
This reverts commit ef20a64.
  • Loading branch information
R. Tyler Croy committed Sep 19, 2016
1 parent 1df0cda commit 9d6ac85
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions site/static/.htaccess
Expand Up @@ -6,18 +6,18 @@ RewriteEngine on
# If we have a match that looks like an LTS version, e.g. 1.554.1, redirect to stable-1.554
RewriteCond %{QUERY_STRING} ^.*version=([0-9]*\.[0-9]*)\.[0-9]*$ [NC]
RewriteCond %{DOCUMENT_ROOT}/stable\-%1%{REQUEST_URI} -f
RewriteRule ^update\-center\.(json|html)$ /stable\-%1%{REQUEST_URI}? [NC,L,R=301]
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\.(actual\.json|json|html)$ /current%{REQUEST_URI}? [NC,L,R=301]
RewriteRule ^update\-center\.[actual.json|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]
RewriteRule ^release\-history\.json+ /current%{REQUEST_URI}? [NC,L,R=301]

# Ensure /latestCore.txt goes to /current/latestCore.txt
RewriteRule ^latestCore\.txt$ /current%{REQUEST_URI}? [NC,L,R=301]
RewriteRule ^latestCore\.txt+ /current%{REQUEST_URI}? [NC,L,R=301]



Expand Down

0 comments on commit 9d6ac85

Please sign in to comment.