Skip to content

Commit fe82a34

Browse files
Apply changes to redirection rules (#312)
* Apply changes to redirection rules * Drop unnecessary rule
1 parent 122675a commit fe82a34

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

docs/aws-config.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,20 @@
88
"RoutingRules": [
99
{
1010
"Condition": {
11-
"KeyPrefixEquals": "api/latest/${CRYSTAL_VERSION}/"
11+
"HttpErrorCodeReturnedEquals": "404",
12+
"KeyPrefixEquals": "api/1"
13+
},
14+
"Redirect": {
15+
"HostName": "crystal-lang.org",
16+
"HttpRedirectCode": "302",
17+
"Protocol": "https",
18+
"ReplaceKeyWith": "api/${CRYSTAL_VERSION}/404.html"
19+
}
20+
},
21+
{
22+
"Condition": {
23+
"HttpErrorCodeReturnedEquals": "404",
24+
"KeyPrefixEquals": "api/0"
1225
},
1326
"Redirect": {
1427
"HostName": "crystal-lang.org",

0 commit comments

Comments
 (0)