Skip to content

Redirects & Headers

Configure redirect rules and custom response headers in .sandbar/config.toml.

[redirects]
"/old-path" = { to = "/new-path", status = 301 }
"/blog/*" = { to = "/articles/:splat", status = 301 }

Redirects are synced to your site configuration on each deploy.

[headers]
"/api/*" = { "Access-Control-Allow-Origin" = "*" }
"/*" = { "X-Frame-Options" = "DENY", "X-Content-Type-Options" = "nosniff" }

Headers are applied via CDN configuration on deploy.