Solved

My web site pushes a download of index.html instead of displaying

Posted on 2011-03-20
6
162 Views
Last Modified: 2012-05-11
When a user visits a site I've put together the site forces a download of the HTML files rather than display them - what's going on?!
0
Comment
Question by:nickedwards
  • 3
  • 3
6 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 35176638
That is usually because the server doesn't have the MIME type for those files.  Which admittedly would be odd but it happens.  What server are you using?
0
 
LVL 1

Author Comment

by:nickedwards
ID: 35176647
It's a Linux box with cpanel setup.
0
 
LVL 1

Author Comment

by:nickedwards
ID: 35176658
Infact it's only files which have index in the file name and are HTML. For example, index-3.html is affected whilst index-3.php and tester.html are not.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 35176689
Do you have an 'htaccess' file that changes or rewrites anything?
0
 
LVL 1

Author Comment

by:nickedwards
ID: 35176817
Yes, I did at one point. I've since removed it but I guess it's still cached.
0
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 35177017
Try "index-3.htm" and see if that loads.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question