apache - Parse CSS file as PHP -
so, moved new host. using code in htaccess parse css files php. in new host, didn't work. googled , googled , tried every code find. single of them didn't work. here's of codes i've tried:
addhandler application/x-httpd-php .css addhandler application/x-httpd-php5 .css addhandler application/x-httpd-php53 .css addtype application/x-httpd-php .css
my php version 5.3.22 , webhost using linux. didn't work. please help.
from parse js/css php file using htaccess
you should need add htaccess
<filesmatch "\.css$"> sethandler application/x-httpd-php header set content-type "text/css" </filesmatch>
if you're getting 500 internal server error header line, make sure have mod_headers enabled in apache config, if mod_headers not installed , provider not install/enable it, need rename css file .php , add new php file
header("content-type: text/css");
Comments
Post a Comment