Skip to content

Commit

Permalink
add sample redirects
Browse files Browse the repository at this point in the history
Signed-off-by: svrnm <[email protected]>
  • Loading branch information
svrnm committed Aug 12, 2024
1 parent 7aff6d9 commit 10dc99c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,18 @@ from = "/go-sources/:name/*"
status = 200 # ensure that the URL stays the same, see https://docs.netlify.com/routing/redirects/rewrites-proxies/
to = "/go-sources/:name?s=:splat"

[[redirects]]
from = "/collector-contrib/*"
status = 200 # ensure that the URL stays the same, see https://docs.netlify.com/routing/redirects/rewrites-proxies/
to = "/go-sources/collector-contrib/?s=:splat"
force = true

[[redirects]]
from = "/contrib/*"
to = "/go-sources/contrib/?s=:splat"
force = true


[[headers]]
for = "/schemas/:version"
[headers.values]
Expand Down

0 comments on commit 10dc99c

Please sign in to comment.