Skip to content

Instantly share code, notes, and snippets.

@josephabrahams
Created June 2, 2018 23:02
Show Gist options
  • Save josephabrahams/8f833f060223b4447c8ee46bde3b2568 to your computer and use it in GitHub Desktop.
Save josephabrahams/8f833f060223b4447c8ee46bde3b2568 to your computer and use it in GitHub Desktop.

Revisions

  1. josephabrahams created this gist Jun 2, 2018.
    10 changes: 10 additions & 0 deletions s3-redirect-rule.xml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <RoutingRules>
    <RoutingRule>
    <Redirect>
    <HostName>example.com</HostName>
    <HttpRedirectCode>301</HttpRedirectCode>
    <Protocol>https</Protocol>
    <ReplaceKeyWith/>
    </Redirect>
    </RoutingRule>
    </RoutingRules>