Please change hosts. Your host doesn't know what they are talking about.
Even if PHP is running in CGI mode it can of course set headers. However this is
irrelevant because we're talking about the .htaccess file which is parsed by Apache itself,
NOT PHP. The .htaccess file is parsed VERY LONG before Apache routes the URL, let alone decide whether to route it through the configure PHP SAPI. As I wrote in my original reply:
Your server does not have the Apache mod_headers module installed or activated.
Your
Apache server does not have the mod_headers.c module installed or activated. It has nothing to do with PHP. You could have a static HTML site with the same .htaccess line and the result would be exactly the same.
Do yourself a favor. Move to a host where the people running the servers actually understand how the servers work. Even though it's not my job –I am a developer, not a systems administrator– I already know more about how Apache works than them. That's scary if you come to think about it...
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!