{"id":2420,"date":"2022-11-21T23:31:14","date_gmt":"2022-11-21T23:31:14","guid":{"rendered":"https:\/\/blog.hostinger.io\/fr\/support\/2022\/11\/21\/1583371-comment-ajouter-une-extension-de-fichier-aux-types-mime-chez-hostinger\/"},"modified":"2022-11-21T23:31:14","modified_gmt":"2022-11-21T23:31:14","slug":"1583371-comment-ajouter-une-extension-de-fichier-aux-types-mime-chez-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/fr\/support\/1583371-comment-ajouter-une-extension-de-fichier-aux-types-mime-chez-hostinger\/","title":{"rendered":"Comment Ajouter une Extension de Fichier aux Types MIME Chez Hostinger ?"},"content":{"rendered":"<p class=\"no-margin\">Bien que la plupart du contenu de votre site web soit reconnu automatiquement comme du texte, des images, etc., il peut y avoir certains cas o&ugrave; vous devrez sp&eacute;cifier le type d&rsquo;extension de fichier via un code pour vous assurer qu&rsquo;il fonctionne correctement.<\/p><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Pour ce faire, vous devrez ajouter une ligne &agrave; votre fichier <b><a href=\"\/fr\/support\/1583307-comment-creer-un-fichier-htaccess\" target=\"_blank\" class=\"intercom-content-link\">.htaccess<\/a><\/b> en suivant cette structure :<\/p><pre><code>AddType type\/subtype ext<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">O&ugrave; <code>type\/subtype<\/code> indique le type de document et <code>ext <\/code>l&rsquo;extension de fichier qui lui est associ&eacute;e. Par exemple, pour les fichiers Windows Media Audio (WMA), cela ressemblerait &agrave; ceci :<\/p><pre><code>AddType audio\/x-ms-wma wma<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\">Plusieurs extensions de fichiers peuvent &ecirc;tre associ&eacute;es au m&ecirc;me type MIME dans la m&ecirc;me ligne, comme ceci :<\/p><pre><code>AddType video\/mp4 mp4 m4v f4v f4p<\/code><\/pre><p class=\"no-margin\">\n<\/p><p class=\"no-margin\"><b>Remarque :<\/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\">Types MIME courants<\/a><\/b><\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Ajouter des types MIME \u00e0 l&rsquo;aide de .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-2420","post","type-post","status-publish","format-standard","hentry","category-developpement-de-sites-web"],"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\/fr\/support\/wp-json\/wp\/v2\/posts\/2420","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/comments?post=2420"}],"version-history":[{"count":0,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/posts\/2420\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/media?parent=2420"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/categories?post=2420"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/fr\/support\/wp-json\/wp\/v2\/tags?post=2420"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}