What I have to write to the .htaccess file so that the visitors will be able to download .docx files?
.docx issue in Apache servers
.htaccessapache-2.2mime
Related Topic
- Security – prevent the browser from downloading doc docx and pdf
- Finding out what user Apache is running as
- Freebsd – Wrong MIME-type while uploading files
- Get MIME type of files served by Apache
- Linux – Making libmagic/file detect .docx files
- Linux Web Server – Proper Permissions for Website Files and Folders
- Forcing apache to send correct Content-Type for docx files
Best Answer
Sounds like a browser configuration problem. Make sure your browser is configured to download files of the appropriate content type rather than trying to display them.
Also, you could try adding the
Content-Disposition
header, which can be done with theHeader
directive in Apache: http://httpd.apache.org/docs/2.2/mod/mod_headers.html#header Here's one explanation of how to use the header: http://support.microsoft.com/kb/260519