Solved

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

Posted on 2011-03-20
6
160 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

863 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now