I'm running PHP through mod_fastcgi & mod_suexec, and I added Header set X-UA-Compatible "IE=edge env=best-standards-support"
to my .htaccess file. It works fine for static content, but the PHP files lack the header. How do I fix this problem?
Php – mod_headers not working for php + mod_fastcgi pages
apache-2.2fastcgiPHP
Related Topic
- Ubuntu – What causes PHP pages to consistently download instead of running normally
- Php – Apache/2.2.20 (Ubuntu 11.10) gzip compression won’t work on php pages, content is chunked
- Nginx – PHP App (Owncloud) Pages Requesting Incorrect Path for Assets
- Custom headers (mod_headers) not showing in combination with mod_rewrite
- Php – Which PHP setup should I use for a shared hosting environment (fpm, fcgi, proxy, module)
Best Answer
Try
Header always set X-UA-Compatible "IE=edge env=best-standards-support"
.Please note that such a header isn't saved into the files, rather into the HTTP response environment.
If the above doesn't work, try to grab the HTTP response with either
curl -I exampmle.org
or for example a Firefox Addon called Live HTTP Headers to se if it's set.