Tagged with “htaccess”…

Enabling PHP in CSS via .htaccess

Chris has been messing around with .htaccess and figured out how to get PHP working properly in a CSS file. All you have to do is add four lines of code to your .htaccess file:

AddHandler application/x-httpd-php .css
<FilesMatch "\.(css|style)$">
    php_value default_mimetype "text/css"
</FilesMatch>

Now I’m all ready to make a site with an obscene amount of dynamically customized styles.

1 year ago on Friday, November 5th, 2010 at 12:08 PM / Permalink

GoDaddy mod_rewrite problem fix! »

1 year ago on Tuesday, July 13th, 2010 at 12:57 AM / Permalink

The Ultimate Guide to .htaccess Files »

(via Wuori)

2 years ago on Sunday, June 21st, 2009 at 11:43 AM / Permalink