Skip to content

Instantly share code, notes, and snippets.

@mornir
Created July 20, 2025 07:07
Show Gist options
  • Save mornir/d9e2e700e0483b6cba18124a0564f59b to your computer and use it in GitHub Desktop.
Save mornir/d9e2e700e0483b6cba18124a0564f59b to your computer and use it in GitHub Desktop.
Prefix default locale Netlify
[[redirects]]
from = "/"
to = "/fr/"
status = 302
conditions = { Language = ["fr"] }
[[redirects]]
from = "/"
to = "/de/"
status = 302
conditions = { Language = ["de"] }
[[redirects]]
from = "/"
to = "/de/"
status = 301 # canonical home page
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment