Skip to content

Commit

Permalink
Redirect 404s to www.meepleprofessionals.com
Browse files Browse the repository at this point in the history
  • Loading branch information
funkymonkeymonk committed Mar 14, 2024
1 parent 8810730 commit 5b42447
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions terraform/s3.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ resource "aws_s3_bucket_website_configuration" "public_bucket_website_config" {
key = "error.html"
}

routing_rule {
condition {
http_error_code_returned_equals = 404
}
redirect {
host_name = "www.meepleprofessionals.com"
}
}

}

resource "aws_s3_bucket_acl" "public_bucket_acl" {
Expand Down

0 comments on commit 5b42447

Please sign in to comment.