Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Created May 21, 2021 05:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miguelmota/7066b260b9b1d6e702e9a704a5549318 to your computer and use it in GitHub Desktop.
Save miguelmota/7066b260b9b1d6e702e9a704a5549318 to your computer and use it in GitHub Desktop.
Netlify redirect all except for certain path example config
[[redirects]]
from = "/whitepaper.pdf"
to = "/whitepaper.pdf"
status = 200
force = true
[[redirects]]
from = "/*"
to = "https://another-site.com/:splat"
status = 301
force = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment