Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Rewrite instead of redirect /downloads/releases #443

Merged
merged 1 commit into from
Mar 30, 2024

Conversation

darcywong00
Copy link
Contributor

Fixes #442 reverting redirects to rewrites

Comparison to legacy /downloads/releaeses/web.config rules

                <rule name="releases-tier/download" stopProcessing="true">
                  <!-- note: the tier is currently ignored -->
                  <match url="^(alpha|beta|stable)/(.+)$" />
                  <action type="Rewrite" url="_version_downloads.php?tier={R:1}&amp;version={R:2}" />
                </rule>

                <rule name="releases-download" stopProcessing="true">
                  <match url="^(.+)$" />
                  <action type="Rewrite" url="_version_downloads.php?version={R:1}" />
                </rule>

                <rule name="index" stopProcessing="true">
                  <match url="^$" />
                  <action type="Redirect" url=".." />
                </rule>

@darcywong00 darcywong00 added this to the B17S5 milestone Mar 30, 2024
@darcywong00 darcywong00 merged commit 04f4235 into master Mar 30, 2024
2 checks passed
@darcywong00 darcywong00 deleted the fix/version-rewrite branch March 30, 2024 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants