diff --git a/terraform/custom_domains/environment_domains/config/trp_production.tfvars.json b/terraform/custom_domains/environment_domains/config/trp_production.tfvars.json index dcea7305..1af7c564 100644 --- a/terraform/custom_domains/environment_domains/config/trp_production.tfvars.json +++ b/terraform/custom_domains/environment_domains/config/trp_production.tfvars.json @@ -12,7 +12,11 @@ ], "environment_short": "pd", "origin_hostname": "teacher-relocation-payment-production.teacherservices.cloud", - "null_host_header": true, + "redirect_rules":[{ + "from-domain": "apex", + "to-domain": "getintoteaching.education.gov.uk", + "to-path": "/non-uk-teachers/get-an-international-relocation-payment" + }], "cnames": { } } diff --git a/terraform/custom_domains/environment_domains/main.tf b/terraform/custom_domains/environment_domains/main.tf index 58cc076b..d7b184e1 100644 --- a/terraform/custom_domains/environment_domains/main.tf +++ b/terraform/custom_domains/environment_domains/main.tf @@ -10,6 +10,7 @@ module "domains" { host_name = each.value.origin_hostname null_host_header = try(each.value.null_host_header, false) cached_paths = try(each.value.cached_paths, []) + redirect_rules = try(each.value.redirect_rules, []) } # Takes values from hosted_zone.domain_name.cnames (or txt_records, a-records). Use for domains which are not associated with front door.