On Apache web servers, it may be necessary to explicitly define or change certain MIME types. This is particularly useful if browsers are to interpret or download files correctly - e.g. configuration files.
What is a MIME type?
MIME types (Multipurpose Internet Mail Extensions) tell the browser how a file should be handled. For example:
text/htmlfor HTML documentsapplication/jsonfor JSON dataapplication/octet-streamfor generic binary files (e.g. download files)
Add or change MIME types via .htaccess
First, connect to your box via FTP. You will find the
.htaccessfile in the root directory of Wordpress.Download the file or open it directly via FTP in a text editor.
Now enter the desired mime types using the Apache command AddType. E.G:
AddType application/json remotemanagementThis entry would tell the web server: "Treat all files with the extension
.remotemanagementas JSON files."Save the whole thing afterwards.
Done - you can now log out of the FTP again and test whether the entries work.
ℹ️You can simply write these entries one below the other in your .htaccess. Make sure that you do not have any duplicate MIME assignments and test the functionality after each change.



