RewiteRule for css

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Reggie

RewiteRule for css

Post 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
tsw
Power Poster
Power Poster
Posts: 1408
Joined: Tue Dec 13, 2005 10:50 pm

Re: RewiteRule for css

Post 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
Locked

Return to “CMSMS Core”