A website running on Apache has the following innocuous line to link an .xlsx spreadsheet for download: <a href='/files/files.xlsx'>Download</a>
When I click it, Opera offers to download the file as a .zip instead. While .xlsx files are valid .zip files, I would prefer them to be downloaded as spreadsheets. How can I prevent this behavior?
Adding the following to
.htaccessin the site’s root directory solved the issueHere’s a good sample .htaccess file configured with various popular extensions MIME-type pairs.