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 1af7c564..dcea7305 100644 --- a/terraform/custom_domains/environment_domains/config/trp_production.tfvars.json +++ b/terraform/custom_domains/environment_domains/config/trp_production.tfvars.json @@ -12,11 +12,7 @@ ], "environment_short": "pd", "origin_hostname": "teacher-relocation-payment-production.teacherservices.cloud", - "redirect_rules":[{ - "from-domain": "apex", - "to-domain": "getintoteaching.education.gov.uk", - "to-path": "/non-uk-teachers/get-an-international-relocation-payment" - }], + "null_host_header": true, "cnames": { } } diff --git a/terraform/custom_domains/environment_domains/main.tf b/terraform/custom_domains/environment_domains/main.tf index d7b184e1..58cc076b 100644 --- a/terraform/custom_domains/environment_domains/main.tf +++ b/terraform/custom_domains/environment_domains/main.tf @@ -10,7 +10,6 @@ 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.