{"id":639,"date":"2022-01-24T09:27:49","date_gmt":"2022-01-24T09:27:49","guid":{"rendered":"https:\/\/blog.hostinger.io\/id\/support\/2022\/01\/24\/1583371-cara-menambahkan-ekstensi-file-ke-mime-type-hostinger\/"},"modified":"2026-05-09T09:43:26","modified_gmt":"2026-05-09T09:43:26","slug":"1583371-cara-menambahkan-ekstensi-file-ke-mime-type-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/id\/support\/1583371-cara-menambahkan-ekstensi-file-ke-mime-type-hostinger\/","title":{"rendered":"Cara Menambahkan Ekstensi File ke MIME Type Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Meskipun konten di website Anda dikenal secara otomatis sebagai teks, gambar, dan lain sebagainya, dalam beberapa kasus Anda perlu menentukan ekstensi file menggunakan kode untuk memastikannya berfungsi dengan benar. <\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Tambahkan baris ke file <b><a href=\"https:\/\/www.hostinger.co.id\/tutorial\/cara-membuat-htaccess-file\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">.htaccess<\/a><\/b> dengan mengikuti struktur berikut:<\/p><p class=\"no-margin\">\n<\/p><pre><code>AddType video\/x-ms-asf asf asx<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><code>type\/subtype<\/code> adalah jenis dokumen dan <code>ext<\/code>  merupakan ekstensi file terkait. Contoh lainnya adalah untuk file Windows Media Audio (WMA):<\/p><p class=\"no-margin\">\n<\/p><pre><code>AddType audio\/x-ms-wma .wma<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Beberapa ekstensi file dapat dikaitkan dengan MIME type yang sama di baris yang sama seperti: <\/p><p class=\"no-margin\">\n<\/p><div class=\"intercom-container\"><img decoding=\"async\" src=\"\/id\/support\/wp-content\/uploads\/sites\/57\/2022\/01\/fc182b05-64f7-4386-804c-95c442c8261d.jpg\" data-media-id=\"1890\" alt=\"Menu AddType dengan pilihan mime type video\/mp4, mp4, m4v, f4v, f4p\"><\/div><p class=\"no-margin\"><b> <\/b><\/p><p class=\"no-margin\"><b>CATATAN:<\/b><\/p><ul>\n<li>\n<p class=\"no-margin\"><b><a href=\"https:\/\/developer.mozilla.org\/en-US\/docs\/Web\/HTTP\/Basics_of_HTTP\/MIME_types\/Common_types\" target=\"_blank\" class=\"intercom-content-link\" rel=\"noopener\">Common MIME types<\/a><\/b> (dalam bahasa Inggris)<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Menambahkan MIME type dengan .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":[249],"tags":[],"class_list":["post-639","post","type-post","status-publish","format-standard","hentry","category-pengembangan-website-website"],"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-PT","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\/id\/support\/wp-json\/wp\/v2\/posts\/639","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/comments?post=639"}],"version-history":[{"count":1,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/posts\/639\/revisions"}],"predecessor-version":[{"id":1895,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/posts\/639\/revisions\/1895"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/media?parent=639"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/categories?post=639"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/id\/support\/wp-json\/wp\/v2\/tags?post=639"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}