HOC SiteDocumentation

save_redirect

Create or replace a redirect. from and to are paths; to may be an absolute URL. A space or %20 is accepted. Each segment is decoded once, NFC-normalized, and stored percent-encoded with uppercase hex. [param] segments are kept, and %2F stays inside its segment. Optional locale limits the redirect to one locale. status is 301 or 302. A from path that ends in a static asset extension is saved and returned with a warning.

save_redirect · Group: design

Create or replace a redirect. from and to are paths; to may be an absolute URL. A space or %20 is accepted. Each segment is decoded once, NFC-normalized, and stored percent-encoded with uppercase hex. [param] segments are kept, and %2F stays inside its segment. Optional locale limits the redirect to one locale. status is 301 or 302. A from path that ends in a static asset extension is saved and returned with a warning.

Inputs

FieldRequiredNotes
websiteIdrequired
fromrequired
torequired
statusoptional
localeCodeoptional
dryRunoptional

Maps to

  • POST /api/v1/{locale}/{websiteId}/redirects → API