{"id":492,"date":"2011-06-22T15:09:04","date_gmt":"2011-06-22T15:09:04","guid":{"rendered":"http:\/\/blog.nixwind.com\/?p=492"},"modified":"2011-11-28T10:38:43","modified_gmt":"2011-11-28T10:38:43","slug":"add-a-mime-type-using-cpanel","status":"publish","type":"post","link":"https:\/\/blog.nixwind.com\/?p=492","title":{"rendered":"Add a MIME Type using cPanel"},"content":{"rendered":"<p>MIME types tell browsers how to handle specific extensions. Adding MIME types is useful for enabling visitors\u2019 browsers to handle  new technologies as they come out.<\/p>\n<p><strong>1) Click on the MIME Types button on the home page.<\/strong><\/p>\n<p><a href=\"http:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/cPanel-MIME-Types.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-495\" title=\"cPanel-MIME Types\" src=\"http:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/cPanel-MIME-Types.png\" alt=\"\" width=\"289\" height=\"173\" \/><\/a><\/p>\n<p><strong>2) To add a MIME type<\/strong><\/p>\n<p><a href=\"http:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/cPanel-MIME-Types_Create.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-496\" title=\"cPanel-MIME Types_Create\" src=\"http:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/cPanel-MIME-Types_Create-300x74.png\" alt=\"\" width=\"300\" height=\"74\" srcset=\"https:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/cPanel-MIME-Types_Create-300x74.png 300w, https:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/cPanel-MIME-Types_Create.png 729w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">a) Enter the name of the file type\u2019s handler into the text box <strong><em>&#8220;Mime Type&#8221;<\/em> <\/strong>.<\/p>\n<p style=\"padding-left: 30px;\">b) Enter the file extension, separate each entry with a space in the  text box<strong> &#8220;<em>Extension(s)<\/em>&#8221; <\/strong>started with a dot  (&#8220;.&#8221;).<\/p>\n<p><strong>3) Existing MIME Types are listed under &#8220;User Defined MIME Types&#8221;.<\/strong><\/p>\n<p><a href=\"http:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/cPanel-MIME-Types_User-Defined.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-497\" title=\"cPanel-MIME Types_User Defined\" src=\"http:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/cPanel-MIME-Types_User-Defined-300x35.png\" alt=\"\" width=\"300\" height=\"35\" srcset=\"https:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/cPanel-MIME-Types_User-Defined-300x35.png 300w, https:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/cPanel-MIME-Types_User-Defined.png 723w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Click on the Remove button of appropriate handler to delete an existing MIME Types.<\/p>\n<p>Here is an example of the cPanel interface.<\/p>\n<div id=\"attachment_601\" style=\"width: 310px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/mimetype1.png\"><img aria-describedby=\"caption-attachment-601\" decoding=\"async\" loading=\"lazy\" class=\"size-medium wp-image-601\" title=\"mimetype\" src=\"http:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/mimetype1-300x101.png\" alt=\"\" width=\"300\" height=\"101\" srcset=\"https:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/mimetype1-300x101.png 300w, https:\/\/blog.nixwind.com\/wp-content\/uploads\/2011\/06\/mimetype1.png 450w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><p id=\"caption-attachment-601\" class=\"wp-caption-text\">mimetype<\/p><\/div>\n<p>The above example tells Apache to treat my .html and .htm  files as PHP files. This is helpful if your .html files have PHP code  inside, but you cannot rename the files to the .php extension<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MIME types tell browsers how to handle specific extensions. Adding MIME types is useful for enabling visitors\u2019 browsers to handle new technologies as they come out. 1) Click on the MIME Types button on the home page. 2) To add a MIME type a) Enter the name of the file type\u2019s handler into the text [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[18,77],"_links":{"self":[{"href":"https:\/\/blog.nixwind.com\/index.php?rest_route=\/wp\/v2\/posts\/492"}],"collection":[{"href":"https:\/\/blog.nixwind.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nixwind.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nixwind.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nixwind.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=492"}],"version-history":[{"count":7,"href":"https:\/\/blog.nixwind.com\/index.php?rest_route=\/wp\/v2\/posts\/492\/revisions"}],"predecessor-version":[{"id":599,"href":"https:\/\/blog.nixwind.com\/index.php?rest_route=\/wp\/v2\/posts\/492\/revisions\/599"}],"wp:attachment":[{"href":"https:\/\/blog.nixwind.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nixwind.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nixwind.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}