Skip to content

Commit

Permalink
Merge pull request #134 from DFE-Digital/2171-security-redirects-remo…
Browse files Browse the repository at this point in the history
…ve-leading-slash

[2171] Remove leading slash in URL redirect
  • Loading branch information
saliceti authored Nov 29, 2024
2 parents eae51cf + 25bb885 commit 966efba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions domains/environment_domains/front_door_security_rules.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ resource "azurerm_cdn_frontdoor_rule" "security_txt" {
conditions {
url_path_condition {
operator = "BeginsWith"
match_values = ["/.well-known/security.txt", "/security.txt"]
match_values = [".well-known/security.txt", "security.txt"]
transforms = ["Lowercase"]
}
}
Expand All @@ -43,7 +43,7 @@ resource "azurerm_cdn_frontdoor_rule" "thanks_txt" {
conditions {
url_path_condition {
operator = "BeginsWith"
match_values = ["/.well-known/thanks.txt", "/thanks.txt"]
match_values = [".well-known/thanks.txt", "thanks.txt"]
transforms = ["Lowercase"]
}
}
Expand Down

0 comments on commit 966efba

Please sign in to comment.