PDF mime-type in WordPress Multisite
-
Hi guys!
I have a problem with WordPress Multisite and PDF mime-types. I have a network with 2 blogs. The first (main) blog uploads it’s files to /wp-content/uploads/ and I have put a .htaccess file inside the /uploads/ directory that contains the proper mime-type to force PDF file download:
:Location *.pdf SetMime application/octet-stream :Location
The problem is that I cannot set this for multisite blogs as the file address is dynamic. They are uploaded to /wp-content/blogs.dir/2/files and their download path is {SECOND BLOG DOMAIN DOMAIN}/files/filename.pdf.
I have put a similar .htaccess file in both /wp-content/blogs.dir/ and /wp-content/blogs.dir/2/files/ but it doesn’t work.
How can I solve this issue to force download PDF files on both sites?
- The topic ‘PDF mime-type in WordPress Multisite’ is closed to new replies.