Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why do SSI's not show up on Netscape Browser

Status
Not open for further replies.

brichr

MIS
Feb 17, 2003
121
US
My Apache server side includes work fine with IE but whe you look at the pages through Netscape Browser all that you see is HTML text.

Can some explain this to me or tell me how I can enable them for Netscape either on the client side or on the Server side.
 
SSI is parsed on the server side. client should not matter.

Can you give us an example url? What kind of 'text' is showing up in Netscape? Is it the text of the page you included or is the actual include tag?

More info please.
 
sounds like your sending 'text/plain' when you need to be sending 'text/html'.

Apache FAQ 16

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
The only odd thing I see is a mismatch in charsets

Header says
Content-Type: text/html; charset=WINDOWS-1251

Meta tag says:
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">

Dunno if that would do it, I have never seen such a problem. Note that 12-51 is Cyrillic..

 
it's your mime type.

Check out the Apache faq above - it tells you how to set the type to text/html.

Your sending it as text/plain - which IE will still render, but Mozilla/compliant browsers will treat as plain text.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
Must be a user-agent thing. Mozilla gets plain and Lynx gets plain but a generic telnet gets text/html

Code:
www# telnet [URL unfurl="true"]www.novoco.com[/URL] 80
Trying 66.98.244.4...
Connected to [URL unfurl="true"]www.novoco.com.[/URL]
Escape character is '^]'.
GET / HEAD

HTTP/1.1 200 OK
Date: Thu, 25 Mar 2004 21:08:12 GMT
Server: Apache/2.0.46 (Red Hat)
Last-Modified: Tue, 09 Mar 2004 16:00:38 GMT
ETag: "4c072-13f9-e2125580"
Accept-Ranges: bytes
Content-Length: 5113
Connection: close
Content-Type: text/html; charset=WINDOWS-1251

Check your user-agent mime types as manarth suggests.
 
Manarth you are the man. Thanks for the help

Had to change one line in httpd.conf

DefaultType text/plain to text/html

Thanks again
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top