-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9472 from NixOS/backport-9459-to-2.19-maintenance
[Backport 2.19-maintenance] add path based redirects
- Loading branch information
Showing
2 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# redirect rules for paths (server-side) to prevent link rot. | ||
# see ./redirects.js for redirects based on URL fragments (client-side) | ||
# | ||
# concrete user story this supports: | ||
# - user finds URL to the manual for Nix x.y | ||
# - Nix x.z (z > y) is the most recent release | ||
# - updating the version in the URL will show the right thing | ||
# | ||
# format documentation: | ||
# - https://docs.netlify.com/routing/redirects/#syntax-for-the-redirects-file | ||
# - https://docs.netlify.com/routing/redirects/redirect-options/ | ||
# | ||
# conventions: | ||
# - always force (<CODE>!) since this allows re-using file names | ||
# - group related paths to ease readability | ||
# - always append new redirects to the end of the file | ||
# - redirects that should have been there but are missing can be inserted where they belong | ||
|
||
/expressions/expression-language /language/ 301! | ||
/expressions/language-values /language/values 301! | ||
/expressions/language-constructs /language/constructs 301! | ||
/expressions/language-operators /language/operators 301! | ||
/expressions/* /language/:splat 301! | ||
|
||
/package-management/basic-package-mgmt /command-ref/nix-env 301! | ||
|
||
/package-management/channels* /command-ref/nix-channel 301! | ||
|
||
/package-management/s3-substituter* /command-ref/new-cli/nix3-help-stores#s3-binary-cache-store 301! | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters