escaped_designer
escaped_designer

Reputation: 97

Html code not being read as a webpage

I think this is something simple,

this code isn't displaying as a web page:

http://summercpd.com/ophthalmic

Any help would be greatly appreciated :-]

Upvotes: 0

Views: 670

Answers (2)

Reeno
Reeno

Reputation: 5705

The content type of the sent document is text/plain, it has to be text/html. Add a file called .htaccess in the same folder with the following content:

AddType text/html .html .htm

The file name should then end with *.html

Upvotes: 1

Jez
Jez

Reputation: 2444

Your web server is not sending the header

Content-Type: text/html

Without that, the browser doesn't know how to display the content.

Upvotes: 3

Related Questions