I have a PHP file called
It has been quite a while but I got an answer. Just thought to share it with other people who need something similar to this.
RewriteEngine On RewriteBase / RewriteRule ^file/(.*)\.css$ Home/file.php?id=$1&type=css RewriteRule ^file/(.*)\.js$ Home/file.php?id=$1&type=js
And In PHP, I would check if the parameter type is equal to css or js and set the content-type header