{"id":1511,"date":"2019-02-08T10:35:58","date_gmt":"2019-02-08T10:35:58","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583371-how-to-add-file-extension-to-mime-types-at-hostinger\/"},"modified":"2026-08-11T03:47:07","modified_gmt":"2026-08-11T03:47:07","slug":"1583371-how-to-add-file-extension-to-mime-types-at-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583371-how-to-add-file-extension-to-mime-types-at-hostinger\/","title":{"rendered":"How to add file extension to MIME types at Hostinger"},"content":{"rendered":"<p class=\"no-margin\">While most of the content of your website is recognized automatically as text, images, etc., there may be some cases where you will need to specify the type of file extension via code to ensure that it works correctly.<\/p><h2 id=\"h-add-a-mime-type\">Add a MIME type<\/h2><p class=\"no-margin\">To do it, you will need to add a line to your <b><a class=\"intercom-content-link\" href=\"https:\/\/www.hostinger.com\/support\/1583307-how-to-create-an-htaccess-file-at-hostinger\/\" target=\"_blank\" rel=\"noopener\">.htaccess<\/a><\/b> file following this structure:<\/p><pre><code>AddType type\/subtype ext<\/code><\/pre><p class=\"no-margin\">Where <code>type\/subtype<\/code> indicates the kind of document and <code>ext<\/code> the file extension associated with it. For example, for Windows Media Audio files (WMA), it would look like this:<\/p><pre><code>AddType audio\/x-ms-wma wma<\/code><\/pre><p class=\"no-margin\">Multiple file extensions can be associated with the same MIME type in the same line, such as this:<\/p><pre><code>AddType video\/mp4 mp4 m4v f4v f4p<\/code><\/pre><p>With the correct MIME type added, browsers and servers can correctly identify and handle that file type going forward.<\/p><p class=\"no-margin\"><b>Additional resource<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\"><b><a class=\"intercom-content-link\" href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Basics_of_HTTP\/MIME_types\/Common_types\" target=\"_blank\" rel=\"noopener\">Common MIME types<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Adding MIME types using .htaccess<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[274],"tags":[],"class_list":["post-1511","post","type-post","status-publish","format-standard","hentry","category-website-development"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583371-how-to-add-file-extension-to-mime-types-at-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583371-como-anadir-la-extension-de-archivo-a-los-tipos-mime-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583371-comment-ajouter-une-extension-de-fichier-aux-types-mime-chez-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583371-cara-menambahkan-ekstensi-file-ke-mime-type-hostinger\/","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/support\/1583371-como-adicionar-extensao-de-arquivo-aos-tipos-mime-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583371------mime--h\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1511","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1511"}],"version-history":[{"count":2,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1511\/revisions"}],"predecessor-version":[{"id":15142,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1511\/revisions\/15142"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1511"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1511"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1511"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}