Skip to content

Commit

Permalink
Split the generic redirects to specific ones
Browse files Browse the repository at this point in the history
As requested in #539 (comment)

Co-authored-by: SeanTAllen <[email protected]>
  • Loading branch information
shaedrich and SeanTAllen authored Mar 27, 2024
1 parent f9196e7 commit a8ead55
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,19 @@ ID = "Your_Site_ID"
force = true

[[redirects]]
from = "/pattern-matching/*"
to = "/expressions/:splat"
from = "/pattern-matching/index.html"
to = "/expressions/match.html"
status = 301
force = true

[[redirects]]
from = "/pattern-matching/match.html"
to = "/expressions/match.html"
status = 301
force = true

[[redirects]]
from = "/pattern-matching/as.html"
to = "/expressions/as.html"
status = 301
force = true

0 comments on commit a8ead55

Please sign in to comment.