Skip to content

Commit

Permalink
Apply changes to redirection rules (#312)
Browse files Browse the repository at this point in the history
* Apply changes to redirection rules

* Drop unnecessary rule
  • Loading branch information
straight-shoota committed Jun 14, 2024
1 parent 122675a commit fe82a34
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion docs/aws-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,20 @@
"RoutingRules": [
{
"Condition": {
"KeyPrefixEquals": "api/latest/${CRYSTAL_VERSION}/"
"HttpErrorCodeReturnedEquals": "404",
"KeyPrefixEquals": "api/1"
},
"Redirect": {
"HostName": "crystal-lang.org",
"HttpRedirectCode": "302",
"Protocol": "https",
"ReplaceKeyWith": "api/${CRYSTAL_VERSION}/404.html"
}
},
{
"Condition": {
"HttpErrorCodeReturnedEquals": "404",
"KeyPrefixEquals": "api/0"
},
"Redirect": {
"HostName": "crystal-lang.org",
Expand Down

0 comments on commit fe82a34

Please sign in to comment.