Forum Moderators: bakedjake
The file program is completely different from apache. It will look into the file and try to match the content against various patterns in an attempt to deduce the mime type of the content.
An easy way to find the mime type of a file as seen by apache is to use "wget -d URL" which will show the entire communication between client and server. Wget is a unix program, but a windows version exists.
René
[devedge.netscape.com...]
Are you using Apache? If so, in the .htaccess file in your web root, add this line:
AddType text/css css
Problem solved!
Hope this helps...
Just wondered if there was a way to physically change the Mime type?
The mime type is not a property of the file. It is something that is associated with the file through some process of examination of the file. Apache uses the file name extension, the file program the first part of the files content.
So there is not way to change it. You can, however, influence the process of assigning a mime type to the file, by setting apache directives or by renaming or editing the file.
René.