Our system detected that your browser is blocking advertisements on our site. Please help support Fans Focus by disabling any kind of ad blocker while browsing this site. Thank you.
Jump to content

Mozilla


Zagreus

Recommended Posts

Re: the none rendering of the "offical" site in Mozilla. It's probably because the Content-Type being sent back by the http server to the client looks like:

 

Content-Type: text/plain; charset=ISO-8859-1

 

It really should be:

 

Content-Type: text/html

 

Mozilla is being told it's a plain text document and so just print it to screen, whilst IE seems to be ignoring it and rendering it as HTML.

 

Zag

 

Link to comment
Share on other sites

It's not really a "problem" with Mozilla. Mozilla is just doing what the server is telling it to do. If you look at the http headers (I'm using a unix util called dog) you'll see that the server is telling the client that the data is text/plain. The headers also reveal that the web server is Apache. The server needs to be configured, so when it server shtml pages, it sends: Content-Type: text/html in the http headers. Looking at one of the Apache server I look after this can be done in one of two ways:

 

1. change the default type value in httpd.conf to html: e.g.

 

DefaultType text/html

 

2. (this is how my Apache is configured). Add shtml to the following lines in the httpd.conf file:

 

DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.phtml index.cgi

AddType text/html .shtml

AddHandler server-parsed .shtml

 

I got the above three lines bt just grep-ing for shtml. I think the AddType is the most important.

 

After the httpd.conf file as been edited the web server will need to be restarted.

 

Zag

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...