Anybody have any experience overriding mime types in a Shared Linux Hosting setup? According to https://www.godaddy.com/help/configure-mime-types-375 you should be able to do this just by adding an .htaccess file, but this doesn't seem to have any effect. What I am trying to do is create a dynamic RSS feed using a PHP file, and set the content type to text/xml so that feed readers can recognize it as a feed. This doesn't seem to work, the content type header just stays as text/html.
Solved! Go to Solution.
Welcome to the community!
Just curious, were you using cPanel (Linux) or Plesk (Windows) hosting? The instructions in the article link you referenced should work in a Linux environment, but have no affect on Windows as these are not Apache based. Instead, you'll want to configure custom MIME types with this.
If you're still running into trouble, let us all know. Hopefully another member who's familiar with setting up custom MIME types can share some additional insight.
I have a Linux hosting and I have been trying to add a .jsonld mime type and I have followed the instructions mentioned here , but in vain. I also tried adding the custom mime types in the Cpanel / Manage / Advanced / mimetype , even that doesn't seem to be working even though it successfully adds the mimetype.
Thanks and Regards,