I am trying to host a site that has no issues on xampp locally but when I upload to my cpanel hosting the pages with no extension are being served up as text/plain via headers. The page's html contains the correct meta tag to tell the browsers that the file is html but they are listening to the response header which is stating it is text/plain.
Is there a way, preferably via htaccess, to force a MIME type for files with no extension, a default MIME type for example.
This is no issue when setting the type for files with any other extension as this can be easily done via htaccess but I am struggling to find a way to do it for files with no extension.
Thanks a lot from a first time poster here, I hope this is the right place for such a question.
Cheers
Is there a way, preferably via htaccess, to force a MIME type for files with no extension, a default MIME type for example.
This is no issue when setting the type for files with any other extension as this can be easily done via htaccess but I am struggling to find a way to do it for files with no extension.
Thanks a lot from a first time poster here, I hope this is the right place for such a question.
Cheers