Solved

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

Posted on 2011-03-20
6
161 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
ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

 
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

773 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