Hello. I'm using Amazon S3 and Cloudfront as my hosting service for my website and also to host my landing pages. Until now everything worked fine. I create folders for each landing page and inside there is an index.html file. The URL would be something like this for the landing pages:
http://www.mywebsite.com/LP1/index.html
For some reason, since yesterday when I upload a landing page and type the URL, it tries to download the index.html file. I tried this on several browsers and the only one that show the web page normally is Internet Explorer. All the other browsers try to download the index file. I’ve already opened a ticket on the Amazon support centre, but they haven’t answered yet.
In the meantime I have been trying different setups, mainly changing the metadata values (Content-type, Content-Disposition, etc.) but haven’t found the solution. Has anybody gone through this issue? Thanks in advance.
I think I know whats the problem. The index should have the metadata Content-type: text/html. For some reason that option doesn't exist on the index.html of the landing pages inside their folders. The funny thing is that it use to work perfectly. Now by default Content-type is binary/octet-stream. There are other options but the text/html is missing.
Ok, now it's working. I deleted the Content-type binary/octet-stream and created a new one on each index.html page using text/html. That was the problem. I still don't know why this happened though.
I do it using the FTP service that comes with the hosting. It use to set it correctly but something changed. I still don't now what it is.

I've the same problem at AWS. I'll setup test tomorrow and use you technique. Thanks B.
@bachroll - so just to confirm, you're using the "Upload" function pictured there in the S3 browser?
That's weird if so. I've heard of this issue before but only when uploading from the command line.
Let me know and I'll investigate further. May well just be that someone at Amazon "moved fast and broke something" for a day or so.
Hello Bachroll,
Where did you set text/html?
===========================
In https://s3.console.aws.amazon.com
I only found these options in Change metadata
text/plain
text/rtf
In my test;
http://redtest.site.s3-website-us-east-1.amazonaws.com/
folder001
kept default
folder002
used text/plain
folder003
pointed to folder
Test followup;
deleted index.html in folder002
uploaded it again and boom;
Automatically it is set to text/html by AWS
Strange, anyone has any idea what happened?

Another follow up;
New test and it works now like it should;
upload html-file = automatically => metadata=text/html
I guess it was a AWS-bug at the time of this thread (AWS had just changed the interface)