Page 1 of 1

RewiteRule for css

Posted: Tue Aug 22, 2006 11:02 pm
by Reggie
Hi,

I'm trying (and failed :p) to change http://portfolio.reggie.be/stylesheet.php?templateid=20 in http://portfolio.reggie.be/20.css or style20.css or something.

So I added the following in my .htaccess file

Code: Select all

# Rewrites stylesheets
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^([^/\.]+)/.css$ stylesheet.php?templateid=$1 [QSA]
... not working. Does anyone knows how to manage this ?

UPDATE: I'm doing this because I'm trying to combine CMSMS with flash :p

Re: RewiteRule for css

Posted: Wed Aug 23, 2006 1:19 pm
by tsw
can you paste your full rewrite rules. If you have normal rewrites enabled and the rule is above the css rules it will most probably use it and not even get to css rules...


hope this helps