Skip to content

Commit

Permalink
Merge pull request #443 from keymanapp/fix/version-rewrite
Browse files Browse the repository at this point in the history
fix: Rewrite instead of redirect /downloads/releases
  • Loading branch information
darcywong00 authored Mar 30, 2024
2 parents 080fd00 + 31df44b commit 04f4235
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ RewriteRule "^desktop(/.*)?" "/windows$1" [NC,R=301,END,QSA]

# releases-tier/download
# note: the tier is currently ignored
RewriteRule "^downloads/releases/(alpha|beta|stable)/(.+)$" "/downloads/releases/_version_downloads.php?tier=$1&version=$2" [R,END]
RewriteRule "^downloads/releases/(alpha|beta|stable)/(.+)$" "/downloads/releases/_version_downloads.php?tier=$1&version=$2" [END]

# releases-download
RewriteRule "^downloads/releases/(?!_version_downloads\b)(.+)$" "/downloads/releases/_version_downloads.php?version=$1" [R,END]
RewriteRule "^downloads/releases/(.+)$" "/downloads/releases/_version_downloads.php?version=$1" [END]

# index
RewriteRule "^downloads/releases(\/)?$" "/downloads" [R,END]
Expand Down

0 comments on commit 04f4235

Please sign in to comment.