Created
June 15, 2020 09:19
-
-
Save thiagoavadore/14f563ccdcea1a02a8c8e5d8cc51af44 to your computer and use it in GitHub Desktop.
S3 configuration file for Hugo static sites redirect
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"IndexDocument": { | |
"Suffix": "index.html" | |
}, | |
"ErrorDocument": { | |
"Key": "404.html" | |
}, | |
"RoutingRules": [ | |
{ | |
"Redirect": { | |
"ReplaceKeyWith": "index.html" | |
}, | |
"Condition": { | |
"KeyPrefixEquals": "/" | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment