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

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?!
LVL 1
nickedwardsAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Dave BaldwinConnect With a Mentor Fixer of ProblemsCommented:
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
 
nickedwardsAuthor Commented:
It's a Linux box with cpanel setup.
0
 
nickedwardsAuthor Commented:
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
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
Dave BaldwinFixer of ProblemsCommented:
Do you have an 'htaccess' file that changes or rewrites anything?
0
 
nickedwardsAuthor Commented:
Yes, I did at one point. I've since removed it but I guess it's still cached.
0
 
Dave BaldwinFixer of ProblemsCommented:
Try "index-3.htm" and see if that loads.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.