/    Sign up×
Community /Pin to ProfileBookmark

page displaying as code in ff, HELP!

I know this will be a stupidly easy fix but i’m on the verge of throwing my comp out to find it! Any help with this would be greatly appreciated, thanks.

to post a comment
Full-stack Developer

4 Comments(s)

Copy linkTweet thisAlerts:
@TiGGiMar 27.2006 — how about u post ur code?
Copy linkTweet thisAlerts:
@toicontienMar 27.2006 — Better yet, is this HTML page being served over a network from a Web server? It might be sending the wrong content-type with the file. In Firefox, right-click on the page and select "Page Info." Look at the content-type. It should be text/html, not text/plain.

Firefox is intelligent enough to know that text/plain is plain text, and realize that the file extension isn't what determines the file type ?
Copy linkTweet thisAlerts:
@headlongauthorMar 28.2006 — You couldn't have got it any more right toicontien.

THANK YOU, YOUR A LEGEND!
Copy linkTweet thisAlerts:
@toicontienMar 28.2006 — If you can't control the Web server, you'll have to contact the server admin or your Web hosting company and have them change it. All .html and .htm files should be served as text/html. If they give you a hard time, refer them to this page: [url=http://www.w3.org/TR/html4/conform.html#h-4.3]HTML 4 Conformance Requirements and Recommendations: 4.3 - The text/html Content Type[/url].

If they still won't change it, tell them that non-IE browsers display files according to content type, not file extension. If they [i]still[/i] refuse to work with you, find another web host because they're morons.
×

Success!

Help @headlong spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...