title: How to redirect the Root of an Amazon S3 Bucket created just for downloads?
body: <p>We have an Amazon S3 bucket setup simply for downloads (we send a lot of traffic to download pdfs etc). The issue is that anyone can access the root folder and see everything in there.</p>
  
  <p>The links are setup like this:</p>
  
  <pre><code>https://s3.amazonaws.com/bucket-name/file-name.pdf
  </code></pre>
  
  <p>The bucket is setup to have Public Access.</p>
  
  <p>The Access Control list has just "Write Objects" checked - otherwise we can't upload to it.</p>
  
  <p>To make the Bucket public we have this in our permission folder:</p>
  
  <pre><code>{
      "Version": "2012-10-17",
      "Statement": [
          {
              "Sid": "PublicReadGetObject",
              "Effect": "Allow",
              "Principal": "*",
              "Action": "s3:GetObject",
              "Resource": "arn:aws:s3:::bucket-name/*"
          }
      ]
  }
  </code></pre>
  
  <p>We'd like to tidy it up so that if anyone hits the bucket root, they get redirected to a place we choose.</p>
  
  <p>I have an index.html file setup that is redirecting, however the root folder doesn't load this file by default.</p>
  
  <p>Can anyone point me to the solution for this? Or if it's not possible with our current setup, what steps should I take? We already have the links right through our site so redoing the, all isn't really the best option. I have been through a lot of threads trying to find a solution for this and really appreciate any input!</p>