MIME types and .htaccess in Linux Hosting
domingo4gh said 1 year, 1 month ago:
Hi, I use 4GH Linux hosting and I want to add mp4 mime type to my root .htaccess file as explained in:
http://support.godaddy.com/help/375/can-i-configure-mime-types-on-my-linux-hosting-account
I have tried: AddType video/mp4 mp4 and: AddType video/mp4 .mp4 waited several hours for the changes to take effect, but it is not working and uploaded videos are not playing. How can I fix it?
BTW, I have hosting configuration 2.2
nathantf said 1 year, 1 month ago:
@domingo4gh
The following is an example of how to enable mp4 support. Each line should be encapsulated by the less-than/greater-than symbols.
configuration
system.webServer
staticContent
mimeMap fileExtension=”.mp4″ mimeType=”video/mp4″ /
/staticContent
/system.webServer
/configuration
Nathan
domingo4gh said 1 year, 1 month ago:
nathantf, it seems that the configuration you posted is for Microsoft IIS.
Remember I’m using Apache in Linux, so I need the correct .htaccess mime parameters.
Baillee said 1 year, 1 month ago:
@domingo4gh
I apologize for any confusion in this matter. Check out this article for some additional information:
Can I configure MIME types on my Linux Hosting Account?
Hope this helps!
Baillee
847electric said 1 year, 1 month ago:
any luck Domino? I’m sitting were your at right now
domingo4gh said 1 year, 1 month ago:
@847electric: I have already solved this on my own last Saturday, it seems that for the edited root .htaccess file to override current configuration you *must* stop web services processes from your hosting configuration panel. These processes seem to restart automatically after you stop them, so there is no need/option to restart web processes manually. I’ve used these MIME parameters:
AddType application/x-shockwave-flash swf
AddType video/mp4 mp4
Good Luck!
timb said 1 year, 1 month ago:
@domingo4gh
Thanks for posting this update, I’m sure it’ll help out our other users!
Tim B
4 min expected wait time