Forum Moderators: open

Message Too Old, No Replies

File Format: Unrecognized in google

         

robinponty

6:59 am on Nov 19, 2004 (gmt 0)

10+ Year Member



Hi,
I have a site which is indexed in google but showing
File Format: Unrecognized - View as HTML

under the URL.

As far as I understand this is a server header problem and hence I run the server header check and it is showing

HTTP/1.1 400 Bad Request
Server: Microsoft-IIS/5.0
Date: Fri, 19 Nov 2004 06:53:28 GMT
Content-Type: text/html
Content-Length: 87

So I understand that this is some kind of error but Can somebody advice me how to fix it.
thanks
MY URL is in profile for reference.
thanks

kaled

12:56 pm on Nov 20, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



When I attempted to view your site with Firefox, it opened a file-download box. IE is ok.

Both problems are probably related so if you can figure out why it goes wrong in Firefox, that may fix it with Google.

I know little about HTTP headers, but a comparison with headers from a standard html page on your server may yield a clue.

Kaled.

bull

1:53 pm on Nov 20, 2004 (gmt 0)

10+ Year Member



I am getting a
Content-Type: application/octet-stream
header. I do not know how to fix this on IIS, though. Obviously, any PHP stuff is sent as octet-stream.

g1smd

6:22 pm on Nov 21, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



>> any PHP stuff is sent as octet-stream <<

The PHP scripts should not be visible to site visitors.

The output of your PHP scripts should be a page of valid HTML code.

The HTTP header for the resultant page should be text/html, no?

robinponty

12:11 pm on Dec 1, 2004 (gmt 0)

10+ Year Member



Hi ,'
Can you please see my URL in the profile and advice me, what could be the problem.
thanks

Goober

12:18 pm on Dec 1, 2004 (gmt 0)

10+ Year Member



Howdy,

I loaded your site and I got an error in IE.

in this line:

/%20ingles/hotels-in-pantanal.php

I removed the %20 and it worked.

Goober

suggy

12:20 pm on Dec 1, 2004 (gmt 0)

10+ Year Member



I suspect it is an errant space in your url - as indicated by %20?

johnt

12:27 pm on Dec 1, 2004 (gmt 0)

10+ Year Member



You could try putting <html> .... </html> tags into your template.
The opening <html> tag should go immediately before your <head> tag, and the </html> should go immediately after your </body> tag.
That would tell everyone what sort of document you were serving. I'm not sure why Firefox and GoogleBot don't recognise it anyway, but it's probably to do with standards compliance - valid HTML must have open and close <html> tags. I'm guessing that it works in IE because it's not the most standards aware browser in the world.
Hope this helps

John

Bluepixel

12:56 pm on Dec 1, 2004 (gmt 0)

10+ Year Member



Make your script print a new Content-Type: Text/Html header and it will work.

Nikke

1:24 pm on Dec 1, 2004 (gmt 0)

10+ Year Member



This thread should maybe be moved to the PHP forum?

However. Are you even sure that PHP is installed on your server?
The missing <html> tags is shouldn't have to be a problem, since your page loads OK when uploaded to my Apache server.

If PHP is installed, the IIS server needs to learn that .php files are text/html files.

try saving this as test.php on your server:
-----------
<html>
<head>
<title>This is the title</title>
</head>
<body>This is some text</body>
</html>
----------

If it loads in a browser (other than IE that already seems to know that the php file is text/html) you should add some valid html to the file, otherwise, check with a server admin.


Thread Note:

We avoid discussing specific URLs for various reasons. WebmasterWorld has a Server header checker [webmasterworld.com] so let's leave things there. Thanks, ciml [webmasterworld.com]

[edited by: ciml at 5:54 pm (utc) on Dec. 1, 2004]