From ab1cebd62b05d69a04c6323b3de16a79308de60e Mon Sep 17 00:00:00 2001 From: John Ake Date: Thu, 19 Sep 2024 14:17:58 +0100 Subject: [PATCH] 2046-setup-redirect-from-get-a-teacher-relocation-payment --- .../environment_domains/config/trp_production.tfvars.json | 6 +++++- terraform/custom_domains/environment_domains/main.tf | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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.