1
0
mirror of https://github.com/bigchaindb/site.git synced 2024-11-22 01:36:55 +01:00

S3 routing rules are fun

This commit is contained in:
Matthias Kretschmann 2018-04-06 14:44:26 +02:00
parent 033c0c00bd
commit e37ed65e57
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -18,6 +18,7 @@
<RoutingRule> <RoutingRule>
<Condition> <Condition>
<KeyPrefixEquals>usecases/</KeyPrefixEquals> <KeyPrefixEquals>usecases/</KeyPrefixEquals>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition> </Condition>
<Redirect> <Redirect>
<ReplaceKeyPrefixWith>features/#usecases</ReplaceKeyPrefixWith> <ReplaceKeyPrefixWith>features/#usecases</ReplaceKeyPrefixWith>
@ -26,7 +27,8 @@
</RoutingRule> </RoutingRule>
<RoutingRule> <RoutingRule>
<Condition> <Condition>
<KeyPrefixEquals>getstarted/index.html</KeyPrefixEquals> <KeyPrefixEquals>getstarted/</KeyPrefixEquals>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition> </Condition>
<Redirect> <Redirect>
<ReplaceKeyPrefixWith>developers/getstarted/</ReplaceKeyPrefixWith> <ReplaceKeyPrefixWith>developers/getstarted/</ReplaceKeyPrefixWith>
@ -35,7 +37,8 @@
</RoutingRule> </RoutingRule>
<RoutingRule> <RoutingRule>
<Condition> <Condition>
<KeyPrefixEquals>guides/index.html</KeyPrefixEquals> <KeyPrefixEquals>guides/</KeyPrefixEquals>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition> </Condition>
<Redirect> <Redirect>
<ReplaceKeyPrefixWith>developers/guides/</ReplaceKeyPrefixWith> <ReplaceKeyPrefixWith>developers/guides/</ReplaceKeyPrefixWith>
@ -45,6 +48,7 @@
<RoutingRule> <RoutingRule>
<Condition> <Condition>
<KeyPrefixEquals>enterprise/</KeyPrefixEquals> <KeyPrefixEquals>enterprise/</KeyPrefixEquals>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition> </Condition>
<Redirect> <Redirect>
<ReplaceKeyPrefixWith>services/</ReplaceKeyPrefixWith> <ReplaceKeyPrefixWith>services/</ReplaceKeyPrefixWith>