File mime-types messed up

Status
Not open for further replies.

vihanbx1

New Member
Messages
4
Reaction score
0
Points
1
I don't really know what's going on and I've looked at the .htaccess. By going to my site at vihanb.x10.mx, you will see that PHP is not being processed. At first every single page was auto getting downloaded but I changed the .htaccess by adding AddType text/plain .* that finally allowed everything to load. Even after this, many of the mime-types for the files are getting messed up, any ideas on a way to fix this would be great. Thanks in advance :). This is also my first post, so hopefully I didn't to anything wrong.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Are you overriding the default mime types?
 

vihanbx1

New Member
Messages
4
Reaction score
0
Points
1
I am only adding 3 mime-types for files. Everything was fine until suddenly mime-times got messed up

AddType text/cache-manifest .manifest
AddType application/x-httpd-php .js
AddType application/x-httpd-php .html .htm
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
You'd want something like this to parse .js and .html as PHP (Though seriously, I REALLY don't suggest parsing .js as PHP...)

Code:
IfModule lsapi_module>
    AddType application/x-httpd-lsphp .html .htm
</IfModule>
 

vihanbx1

New Member
Messages
4
Reaction score
0
Points
1
Is there a way to reset mime-types or something like that? Most files seem to be getting mime-types incorrect. At the moment AddType text/plain seems to allow most things to load except there still are many problems.
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
This was because you didn't use the right addtype. I've fixed it.
 
Status
Not open for further replies.
Top