Manage redirects as infrastructure-as-code.
terraform {
required_providers {
redirectflow = {
source = "redirectflow/redirectflow"
version = "~> 1.0"
}
}
}
provider "redirectflow" {
api_key = var.redirectflow_api_key
}resource "redirectflow_redirect" "example" {
website_id = "abc123"
source = "/old-page"
destination = "/new-page"
status_code = 301
enabled = true
}redirectflow_website - Manage websitesredirectflow_redirect - Manage redirectsredirectflow_group - Manage redirect groupsComing Soon: Terraform provider is currently in development. Contact us for early access.