Skip to content

Commit

Permalink
Restrict robots to /latest. Store S3 config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Banker committed Mar 31, 2021
1 parent 6270ece commit a66f964
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
1 change: 1 addition & 0 deletions robots.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ Disallow: /staging/
Disallow: /5.2/
Disallow: /5.4/
Disallow: /5.6/
Disallow: /6.0/

Sitemap: https://docs.redislabs.com/latest/sitemap.xml
60 changes: 60 additions & 0 deletions website.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"IndexDocument": {
"Suffix": "index.html"
},
"ErrorDocument": {
"Key": "404.html"
},
"RoutingRules": [
{
"Condition": {
"KeyPrefixEquals": "6.0/"
},
"Redirect": {
"HostName": "docs.redislabs.com",
"Protocol": "https",
"ReplaceKeyPrefixWith": "latest/"
}
},
{
"Condition": {
"KeyPrefixEquals": "5.6/rc/"
},
"Redirect": {
"HostName": "docs.redislabs.com",
"Protocol": "https",
"ReplaceKeyPrefixWith": "latest/rc/"
}
},
{
"Condition": {
"KeyPrefixEquals": "5.4/rc/"
},
"Redirect": {
"HostName": "docs.redislabs.com",
"Protocol": "https",
"ReplaceKeyPrefixWith": "latest/rc/"
}
},
{
"Condition": {
"KeyPrefixEquals": "5.4/platforms/"
},
"Redirect": {
"HostName": "docs.redislabs.com",
"Protocol": "https",
"ReplaceKeyPrefixWith": "5.6/platforms/"
}
},
{
"Condition": {
"KeyPrefixEquals": "5.2/"
},
"Redirect": {
"HostName": "docs.redislabs.com",
"Protocol": "https",
"ReplaceKeyPrefixWith": "latest/"
}
}
]
}

0 comments on commit a66f964

Please sign in to comment.