{"id":216,"date":"2012-03-30T15:50:12","date_gmt":"2012-03-30T20:50:12","guid":{"rendered":"http:\/\/www.marcblase.com\/blog\/?p=216"},"modified":"2014-03-25T15:21:24","modified_gmt":"2014-03-25T20:21:24","slug":"force-some-mime-types-to-download","status":"publish","type":"post","link":"https:\/\/ma.rcbla.se\/blog\/2012\/03\/force-some-mime-types-to-download\/","title":{"rendered":"Force (some) MIME types to download"},"content":{"rendered":"<p>OK, so technology is hard for some people. Really it is. So, I think we should make things easier on them by forcing certain MIME types to download to their computer. I know, you&#8217;re probably about to say, &#8220;but what about tablets and smart phones?&#8221; Well, we&#8217;re talking about simplification here and if these people even thought about that, their brains would explode. So, here&#8217;s the goods. Fire up your trusty text editor and add this to your site&#8217;s .htaccess file:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n&lt;filesmatch &quot;\\.(?i:doc|odf|pdf|rtf|txt)$&quot;&gt;\r\n      ForceType application\/octet-stream\r\n      Header set Content-Disposition attachment\r\n&lt;\/filesmatch&gt;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>OK, so technology is hard for some people. Really it is. So, I think we should make things easier on them by forcing certain MIME types to download to their computer. I know, you&#8217;re probably about to say, &#8220;but what about tablets and smart phones?&#8221; Well, we&#8217;re talking about simplification here and if these people [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,11],"tags":[],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-cli","category-coding"],"_links":{"self":[{"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":3,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":408,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/posts\/216\/revisions\/408"}],"wp:attachment":[{"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ma.rcbla.se\/blog\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}