Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723
{"id":3862,"date":"2016-08-17T15:40:45","date_gmt":"2016-08-17T07:40:45","guid":{"rendered":"http:\/\/blog.unethost.com\/?p=3862"},"modified":"2016-08-17T15:40:45","modified_gmt":"2016-08-17T07:40:45","slug":"how_to_setup_file_addtype_to_htaccess_that_making_browser_download","status":"publish","type":"post","link":"https:\/\/blog.unethost.com\/how_to_setup_file_addtype_to_htaccess_that_making_browser_download\/","title":{"rendered":"\u5982\u4f55\u8a2d\u5b9a\u526f\u6a94\u540d\u7684\u985e\u578b\uff0c\u8b93\u700f\u89bd\u5668\u53ef\u4ee5\u8b80\u53d6\u5f8c\u81ea\u52d5\u4e0b\u8f09\uff1f"},"content":{"rendered":"

\u4eca\u5929\u6709\u7ad9\u9577\u8a62\u554f\uff0c\u95dc\u65bc\u4ed6\u5011\u516c\u53f8\u7684\u7db2\u7ad9\u5167\u5bb9\u88e1\uff0c
\n\u6709\u4f7f\u7528\u5230\u7279\u6b8a\u526f\u6a94\u540d\uff1b<\/strong>\u5176\u6a94\u6848\u9023\u7d50\u9700\u8981\u8b93\u7528\u6236\u7aef\u7684\u700f\u89bd\u5668\u9ede\u64ca\u5f8c\uff0c
\n\u5c31\u53ef\u4ee5\u81ea\u52d5\u4e0b\u8f09\uff0c<\/strong>\u800c\u4e0d\u662f\u8b8a\u6210\u5728\u700f\u89bd\u5668\u4e0a\u6253\u958b\u986f\u793a(\u73fe\u5728\u53ea\u6703\u51fa\u73fe\u4e82\u78bc)\u3002<\/strong><\/p>\n

<\/p>\n

\u95dc\u65bc\u9019\u500b\u72c0\u6cc1\uff0c\u8981\u89e3\u6c7a\u4e26\u4e0d\u56f0\u96e3\uff0c
\n\u4e3b\u8981\u662f\u5148\u638c\u63e1\u8a2d\u5b9a\u7684\u908f\u8f2f\u3002<\/p>\n

1.\u7db2\u9801\u7a0b\u5f0f\u900f\u904eweb server\uff0c\u5176\u6240\u57f7\u884c\u7684\u6a94\u6848\u53ca\u526f\u6a94\u540d\u88e1\uff0c
\n\u90fd\u6709\u6307\u6d3e\u76f8\u5c0d\u61c9\u7684\u985e\u578b(type)\uff0c\u4ee5\u5354\u52a9\u700f\u89bd\u5668\u53ef\u4ee5\u5feb\u901f\u5224\u65b7\u5176\u6a94\u6848\u7528\u9014
\n(\u5982\u679c\u6c92\u6709\u6307\u6d3e\uff0c\u5c31\u6703\u767c\u751f\u6253\u958b\u8b8a\u4e82\u78bc\u7684\u554f\u984c)\u3002<\/p>\n

2.\u8981\u662f\u8a2d\u5b9a\u8a72\u7a7a\u9593\u7684type\u8a2d\u7f6e\uff0c
\n\u76f4\u63a5\u4fee\u6539 .htaccess<\/a> \u5373\u53ef\u89e3\u6c7a\u3002<\/p>\n

3.\u63a5\u8457\u8981\u52a0\u5165\u7684\u8a9e\u6cd5\uff0c\u53ef\u80fd\u6703\u8b93\u4eba\u6df7\u6dc6\uff0c
\n\u6211\u5011\u53e6\u5916\u627e\u51fa\u76f8\u95dc\u7684\u7bc4\u4f8b\u5982\u4e0b\uff1a
\nAddType text\/html .html .htm
\nAddType text\/plain .txt
\nAddType text\/richtext .rtx
\nAddType text\/tab-separated-values .tsv
\nAddType text\/x-setext .etx
\nAddType text\/x-server-parsed-html .shtml .sht
\nAddType application\/macbinhex-40 .hqx
\nAddType application\/netalivelink .nel
\nAddType application\/netalive .net
\nAddType application\/news-message-id
\nAddType application\/news-transmission
\nAddType application\/octet-stream .bin .exe
\nAddType application\/oda .oda
\nAddType application\/pdf .pdf
\nAddType application\/postscript .ai .eps .ps
\nAddType application\/remote-printing
\nAddType application\/rtf .rtf
\nAddType application\/slate
\nAddType application\/zip .zip
\nAddType application\/x-mif .mif
\nAddType application\/wita
\nAddType application\/wordperfect5.1
\nAddType application\/x-csh .csh
\nAddType application\/x-dvi .dvi
\nAddType application\/x-hdf .hdf
\nAddType application\/x-latex .latex
\nAddType application\/x-netcdf .nc .cdf
\nAddType application\/x-sh .sh
\nAddType application\/x-tcl .tcl
\nAddType application\/x-tex .tex
\nAddType application\/x-texinfo .texinfo .texi
\nAddType application\/x-troff .t .tr .roff
\nAddType application\/x-troff-man .man
\nAddType application\/x-troff-me .me
\nAddType application\/x-troff-ms .ms
\nAddType application\/x-wais-source .src
\nAddType application\/x-bcpio .bcpio
\nAddType application\/x-cpio .cpio
\nAddType application\/x-gtar .gtar
\nAddType application\/x-shar .shar
\nAddType application\/x-sv4cpio .sv4cpio
\nAddType application\/x-sv4crc .sv4crc
\nAddType application\/x-tar .tar
\nAddType application\/x-ustar .ustar
\nAddType application\/x-director .dcr
\nAddType application\/x-director .dir
\nAddType application\/x-director .dxr
\nAddType application\/x-onlive .sds
\nAddType application\/x-httpd-cgi .cgi
\nAddType image\/gif .gif .GIF
\nAddType image\/ief .ief
\nAddType image\/jpeg .jpeg .jpg .jpe .JPG
\nAddType image\/tiff .tiff .tif
\nAddType image\/x-cmu-raster .ras
\nAddType image\/x-portable-anymap .pnm
\nAddType image\/x-portable-bitmap .pbm
\nAddType image\/x-portable-graymap .pgm
\nAddType image\/x-portable-pixmap .ppm
\nAddType image\/x-rgb .rgb
\nAddType image\/x-xbitmap .xbm
\nAddType image\/x-xpixmap .xpm
\nAddType image\/x-xwindowdump .xwd
\nAddType audio\/basic .au .snd
\nAddType audio\/x-aiff .aif .aiff .aifc
\nAddType audio\/x-wav .wav
\nAddType audio\/x-pn-realaudio .ram
\nAddType audio\/x-midi .mid
\nAddType video\/mpeg .mpeg .mpg .mpe
\nAddType video\/quicktime .qt .mov
\nAddType video\/x-msvideo .avi
\nAddType video\/x-sgi-movie .movie
\nAddType message\/external-body
\nAddType message\/news
\nAddType message\/partial
\nAddType message\/rfc822
\nAddType multipart\/alternative
\nAddType multipart\/appledouble
\nAddType multipart\/digest
\nAddType multipart\/mixed
\nAddType multipart\/parallel
\nAddType x-world\/x-vrml .wrl<\/i><\/code><\/p>\n

 <\/p>\n

4.\u5728\u4e0a\u5217\u7684\u7bc4\u4f8b\u4e2d\uff0c\u6311\u51fa\u4e00\u4e9b\u95dc\u9375\u5b57\u4e32\uff0c
\n\u50cf\u662f\u00a0text image\u00a0application ……\u7b49\u7b49\uff0c<\/i>\u5404\u6709\u5404\u7684\u7528\u9014\u3002<\/p>\n

5.\u56de\u5230\u9019\u4e00\u7bc7\u4e3b\u984c\uff0c\u73fe\u5728\u9700\u8981\u6307\u5b9a\u7279\u6b8a\u7684\u526f\u6a94\u540d\uff0c
\n\u8b93\u700f\u89bd\u5668\u5224\u65b7\u662f\u61c9\u7528\u7a0b\u5f0f\u5f8c\uff0c\u800c\u76f4\u63a5\u4e0b\u8f09\uff0c
\n\u90a3\u5c31\u662f\u00a0AddType application<\/i><\/p>\n

6.\u6240\u4ee5\u6bd4\u65b9\u8aaa \u526f\u6a94\u540d\u662f .abc<\/span> \uff0c\u5176\u8a2d\u7f6e\u662f:
\nAddType application\/abc<\/span> .abc<\/p>\n

<\/i><\/p>\n

7.\u9019\u6a23\u7576client\u7aef\u7684\u4f7f\u7528\u8005\u9ede\u64ca\u9023\u7d50\u5f8c\uff0c\u5c31\u6703\u5c07 xxxx.abc<\/span> \u4e0b\u8f09\u56de\u53bb\uff0c
\n\u9019\u500b\u8a9e\u6cd5\u4e0d\u80fd\u8a2d\u932f\uff0c\u6bd4\u65b9\u8aaa\u8a2d\u70ba \u00a0AddType application\/zip<\/span> .abc
\n<\/i>\u9019\u6a23\u8f09\u56de\u53bb\u6703\u88ab\u8b8a\u6210 xxxx.zip\u3002<\/p>\n

 <\/p>\n

\u6240\u4ee5\u6211\u5011\u52a0\u5165\u4e86\u9019\u4e00\u6bb5\u8a9e\u6cd5\u5f8c\uff0c<\/strong>
\n\u5c31\u9806\u5229\u89e3\u6c7a\u4e86\u9019\u500b\u554f\u984c\u3002<\/strong><\/p>\n

(\u672c\u7bc7\u6559\u5b78\u7531unethost.com\u5ba2\u670d\u64b0\u5beb<\/a>)<\/strong><\/span><\/p>\n

\u5ef6\u4f38\u95b1\u8b80:\u5982\u4f55\u5099\u4efdCpanel\u5f8c\u53f0\u5b89\u88dd\u7684\u5957\u88dd\u7a0b\u5f0f?<\/a><\/strong><\/p>\n

\u5b89\u88dd\u4e0a\u8ff0\u7684\u8edf\u9ad4\uff0c\u6211\u5011\u63d0\u4f9b\u865b\u64ec\u4e3b\u6a5f\u8a66\u7528\uff0c\u4e03\u5929\u6eff\u610f\u4fdd\u8b49\uff0c<\/span><\/strong>
\n\u529f\u80fd\u5b8c\u6574\u4f7f\u7528\u4e0d\u53d7\u9650\u5236\uff0c\u6b61\u8fce
\u9ede\u6211<\/a>\u7533\u8acb\u3002<\/span><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

\u4eca\u5929\u6709\u7ad9\u9577\u8a62\u554f\uff0c\u95dc\u65bc\u4ed6\u5011\u516c\u53f8\u7684\u7db2\u7ad9\u5167\u5bb9\u88e1\uff0c \u6709\u4f7f\u7528\u5230\u7279\u6b8a\u526f\u6a94\u540d\uff1b\u5176\u6a94\u6848\u9023\u7d50\u9700\u8981\u8b93\u7528\u6236\u7aef\u7684\u700f\u89bd\u5668\u9ede\u64ca\u5f8c\uff0c \u5c31\u53ef\u4ee5 … \u95b1\u8b80\u5168\u6587 \u5982\u4f55\u8a2d\u5b9a\u526f\u6a94\u540d\u7684\u985e\u578b\uff0c\u8b93\u700f\u89bd\u5668\u53ef\u4ee5\u8b80\u53d6\u5f8c\u81ea\u52d5\u4e0b\u8f09\uff1f<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":3863,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[151,309],"tags":[18,1060,1062,1061],"_links":{"self":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/3862"}],"collection":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/comments?post=3862"}],"version-history":[{"count":1,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/3862\/revisions"}],"predecessor-version":[{"id":3864,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/3862\/revisions\/3864"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/media\/3863"}],"wp:attachment":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/media?parent=3862"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/categories?post=3862"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/tags?post=3862"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}