The Uniform redirect SDK
The Uniform SDK lets developers work with redirects.
Execute redirects#
The following example is a platform-agnostic approach to executing on redirects using the Uniform redirect SDK.
Convert redirects for 3rd-party tools#
The following examples represent converting Uniform redirects into a format that's executable by third-party hosting tools such as Netlify and Cloudflare:
The previous examples of converting Uniform redirects result in an output like the following:
This results in an output, such as the following, to be added to your TOML file:
This results in an output like the following, which should be added to your root folder in Netlify:
Which results in an output like the following, which should be uploaded into a Cloudflare using their list API .
Which results in an output like the following, which should be uploaded into a Cloudflare using their rules API.
CLI commands for redirects#
Learn about the CLI commands for redirects in the CLI guide.