PHP Handlers
I've previously been processing CSS and SVG files with PHP to add variables. This was all working great when I was using EasyApache3 and PHP 5.6. I had the following code in a .htaccess file and it worked nicely: AddHandler application/x-httpd-php5 .css .svg
Now I've updated to EasyApache4 and decided to use PHP 7.0. I've added the following code to the same .htaccess file but it doesn't work: AddHandler application/x-httpd-php70 .css .svg
How can I get my CSS and SVG files to be handled by PHP as before? Thanks
-
You could try the following: AddHandler application/x-httpd-ea-php70 .css .svg0 -
Well... what can I say. You're a genius! It works like a charm. Thank you very much! 0 -
Your very welcome :-D 0 -
Hello, I'm happy to see the issue is now resolved. Thanks! 0
Please sign in to leave a comment.
Comments
4 comments