mod rewrite - XAMPP Mod_Rewrite & dynamic CSS -
I am running Apache with Mod_Rewite on my local computer (MAC) and all set in XAMPP's httpd.conf file Allow
These are my rules, the snippet of the httpd.conf file -
revive on rewind history ^ / setup / css / user-layout css / cssup / css / user-out.php surname / MS "/ user / web / wwwroot / ms" & lt; The directory "/ user / web / wwwroot / ms" & gt; Option Index Multivisous Of Orders Order Order, Deny, From All & lt; / Directory & gt;
I have in my index.php file -
& lt; Link rel = "stylesheet" type = "text / css" href = "setup / css / userout css? U = 1" />
and in my userlayout.php file -
& lt ;? Php header ('content-type: text / css'); Echo "#test {background-color: # 000;}"; ? & Gt;
Everything is but rules do nothing. I'm not sure I'm putting the rules in the right place and I understand that you can not do this in the httpd.conf file and in the .htaccess file.
rewrite rule / / setup / css / userlayout css $ / / setup / css / user layout.
You can see more about the rewriting rule. / P>
Comments
Post a Comment