Forum Moderators: open

Message Too Old, No Replies

Force a Content-Type

Forcing application/octet-stream to text/html

         

EricD

6:10 pm on Apr 24, 2004 (gmt 0)

10+ Year Member



Hi

Sorry for my english.

I've got an asp file in a server that don't support asp or php ( i know it's stupid but i can't change the extension now, it's about the french serps competition ).

So google think it is an application/octet-stream file, my question is :

Can i force the content-type to be text/html and not application/octet-stream.

I added the meta :
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

but nothing have change.

Have you got any solutions?

Thanks a lot.

Eric :)

encyclo

11:59 pm on Apr 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, EricD!

If I understand correctly, the file has the extension .asp, but it is a pure HTML file? If you are on a server running Apache, try adding the following line to the .htaccess file in your document root:

AddType text/html .asp

That should make all files with the extension .asp be served with the mime-type text/html.

EricD

10:00 am on Apr 25, 2004 (gmt 0)

10+ Year Member



Hi

Thanks, but it seems i'm not allowed to use htaccess file ( wanadoo servers ). Too bad... ;-)