I am working on a website that has many style sheets, all of which handled as a PHP script server Should go- side. My .htaccess file looks like this:
& lt; FilesMatch "\. (Css) $" & gt; Forteotype application / X-HPD-PHP & lt; / FilesMatch & gt;
This is set to the mime type of the content-type
field of HTTP-response text / html
, so there is a small problem. Instead of text / css
Obviously I fix this by adding the header ('Content-Type: Text / CSS')
to all my files Can I have a better way?
Can I do it from within the .htaccess file? It looks like what I'm looking for in any direction given by or .
Try:
php_value default_mimetype "text / css" / Code>
Comments
Post a Comment