I've got a php MVC website developed in Wamp as test server, which works perfectly fine in Chrome, Opera, Safari and FF. However, whenever I try to open it in IE or Edge, the html gets downloaded as a single file with a random name without extension.
I tried uploading it onto my shared hosting and still get the same issue, changing computers to access the page makes no difference neither.
I've got a feeling I need to declare something somewhere for IE and Edge but have no idea how to approach this... any advice would be appreciated!
UPDATE!!!! For whatever reason I had declared
header('Content-Type: charset=utf-8');
No idea why I declared that but removing this fixed the issue.
Thanks for your help!