Skip to content

Commit

Permalink
Added redirects for PDF 404 status codes (#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelledge authored Nov 8, 2021
1 parent 31ba24c commit 1c6f288
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
11 changes: 11 additions & 0 deletions utilities/redirect_pdfs/pdf_redirects.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,14 @@
"ReplaceKeyWith": "latest/"
}
},
{
"Condition": {
"HttpErrorCodeReturnedEquals": "404",
"KeyPrefixEquals": "latest/pdf-gen-"
},
"Redirect": {
"HostName": "docs.redis.com",
"Protocol": "https",
"ReplaceKeyWith": "latest/"
}
},
12 changes: 11 additions & 1 deletion website.json
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,17 @@
"Protocol": "https",
"ReplaceKeyWith": "latest/"
}
},
{
"Condition": {
"KeyPrefixEquals": "latest/pdfs/",
"HttpErrorCodeReturnedEquals": "404"
},
"Redirect": {
"HostName": "docs.redis.com",
"Protocol": "https",
"ReplaceKeyWith": "latest/"
}
}

]
}

0 comments on commit 1c6f288

Please sign in to comment.