我想添加以下内容...
AddType: application/pdf
AddType: application/doc
AddType: application/docx
AddType: application/ppt
AddType: application/ppptx
AddType: application/pps
AddType: application/ppsx
AddType: application/odt
AddType: application/xls
AddType: application/xlsx
AddType: application/rar
AddType: application/zip
...到下面的 htaccess 代码,因此我网站上的用户上传的文件将在浏览器中打开,而不是自动下载。当我将此添加到 wordpress 中的 htaccess 代码时,我不断收到错误:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress