Skip to content

Commit

Permalink
Redirect apex to www canonical domain
Browse files Browse the repository at this point in the history
The redirect is set up using front door instead of the ruby code
  • Loading branch information
saliceti committed Jul 2, 2024
1 parent 7fd8366 commit 77d9a8e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
"/assets/*"
],
"environment_short": "pd",
"origin_hostname": "s118p01-app-as.azurewebsites.net"
"origin_hostname": "s118p01-app-as.azurewebsites.net",
"redirect_rules": [{
"from-domain": "apex",
"to-domain": "www.claim-additional-teaching-payment.service.gov.uk"
}]
}
}
}
1 change: 1 addition & 0 deletions terraform/domains/environment_domains/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ module "domains" {
environment = each.value.environment_short
host_name = each.value.origin_hostname
cached_paths = try(each.value.cached_paths, [])
redirect_rules = try(each.value.redirect_rules, null)
}

0 comments on commit 77d9a8e

Please sign in to comment.