I wish to send all demands for any file ending with css or js to some script this is actually the rule i've which is no longer working

RewriteRule .*\.(js|css)$ /gzip.php=$0 [L]

This will meet your needs

RewriteRule ^(.*)\.(js|css)$ /gzip.php=$1 [L]