?
Solved

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

Posted on 2011-03-20
6
Medium Priority
?
165 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
6 Comments
 
LVL 83

Accepted Solution

by:
Dave Baldwin earned 2000 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
Industry Leaders: 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

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!

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

770 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